Fix mDNS library added only with OTA (#451)

This commit is contained in:
Otto Winter 2019-02-26 18:34:47 +01:00
parent 88625c656d
commit 71cbc9cfb0
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
2 changed files with 4 additions and 3 deletions

View File

@ -51,7 +51,7 @@ REQUIRED_BUILD_FLAGS = '-DUSE_NEW_OTA'
def lib_deps(config): def lib_deps(config):
if CORE.is_esp32: if CORE.is_esp32:
return ['Update', 'ESPmDNS'] return ['Update']
if CORE.is_esp8266: if CORE.is_esp8266:
return ['Hash', 'ESP8266mDNS'] return ['Hash']
raise NotImplementedError raise NotImplementedError

View File

@ -288,8 +288,10 @@ def gather_lib_deps():
if CORE.arduino_version in (ARDUINO_VERSION_ESP32_DEV, ARDUINO_VERSION_ESP32_1_0_1): if CORE.arduino_version in (ARDUINO_VERSION_ESP32_DEV, ARDUINO_VERSION_ESP32_1_0_1):
lib_deps.add('AsyncTCP@1.0.3') lib_deps.add('AsyncTCP@1.0.3')
lib_deps.discard('AsyncTCP@1.0.1') lib_deps.discard('AsyncTCP@1.0.1')
lib_deps.add('ESPmDNS')
elif CORE.is_esp8266: elif CORE.is_esp8266:
lib_deps.add('ESPAsyncTCP@1.1.3') lib_deps.add('ESPAsyncTCP@1.1.3')
lib_deps.add('ESP8266mDNS')
# avoid changing build flags order # avoid changing build flags order
lib_deps_l = list(lib_deps) lib_deps_l = list(lib_deps)
lib_deps_l.sort() lib_deps_l.sort()
@ -393,7 +395,6 @@ def get_ini_content():
data['lib_ldf_mode'] = 'chain' data['lib_ldf_mode'] = 'chain'
REMOVABLE_LIBRARIES = [ REMOVABLE_LIBRARIES = [
'ArduinoOTA', 'ArduinoOTA',
'ESPmDNS',
'Update', 'Update',
'Wire', 'Wire',
'FastLED', 'FastLED',