1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-12 14:53:49 +01:00

ESP8266 change recommended framework version to 2.7.2 (#1208)

This commit is contained in:
Otto Winter
2020-07-27 18:22:47 +02:00
committed by GitHub
parent 389889ad70
commit d26c43103d
12 changed files with 99 additions and 66 deletions

View File

@@ -1,6 +1,7 @@
from esphome.components import time as time_
import esphome.config_validation as cv
import esphome.codegen as cg
from esphome.core import CORE
from esphome.const import CONF_ID, CONF_SERVERS
@@ -27,3 +28,7 @@ def to_code(config):
yield cg.register_component(var, config)
yield time_.register_time(var, config)
if CORE.is_esp8266 and len(servers) > 1:
# We need LwIP features enabled to get 3 SNTP servers (not just one)
cg.add_build_flag('-DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY')