mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 23:21:54 +00:00 
			
		
		
		
	Fix AsyncTCP compilation on ESP32 with Arduino breaking change (#334)
This commit is contained in:
		| @@ -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)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user