Fix AsyncTCP compilation on ESP32 with Arduino breaking change (#334)

This commit is contained in:
Otto Winter 2019-01-13 16:20:28 +01:00 committed by GitHub
parent 7a703d10f4
commit 40ab2d5e5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,10 +279,11 @@ def gather_lib_deps():
if CORE.is_esp32: if CORE.is_esp32:
lib_deps |= { lib_deps |= {
'Preferences', # Preferences helper 'Preferences', # Preferences helper
'AsyncTCP@1.0.1', # Pin AsyncTCP version
} }
# Manual fix for AsyncTCP # Manual fix for AsyncTCP
if CORE.config[CONF_ESPHOMEYAML].get(CONF_ARDUINO_VERSION) == ARDUINO_VERSION_ESP32_DEV: if CORE.config[CONF_ESPHOMEYAML].get(CONF_ARDUINO_VERSION) == ARDUINO_VERSION_ESP32_DEV:
lib_deps.add('https://github.com/me-no-dev/AsyncTCP.git#idf-update') lib_deps.add('AsyncTCP@1.0.3')
lib_deps.discard('AsyncTCP@1.0.1') lib_deps.discard('AsyncTCP@1.0.1')
# avoid changing build flags order # avoid changing build flags order
return list(sorted(x for x in lib_deps if x)) return list(sorted(x for x in lib_deps if x))