mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	ESP8266 disable PIO LDF (#2608)
This commit is contained in:
		| @@ -36,3 +36,5 @@ async def to_code(config): | ||||
|     if CORE.is_esp32: | ||||
|         cg.add_library("DNSServer", None) | ||||
|         cg.add_library("WiFi", None) | ||||
|     if CORE.is_esp8266: | ||||
|         cg.add_library("DNSServer", None) | ||||
|   | ||||
| @@ -142,6 +142,8 @@ CONFIG_SCHEMA = cv.All( | ||||
| async def to_code(config): | ||||
|     cg.add(esp8266_ns.setup_preferences()) | ||||
|  | ||||
|     cg.add_platformio_option("lib_ldf_mode", "off") | ||||
|  | ||||
|     cg.add_platformio_option("board", config[CONF_BOARD]) | ||||
|     cg.add_build_flag("-DUSE_ESP8266") | ||||
|     cg.add_define("ESPHOME_BOARD", config[CONF_BOARD]) | ||||
|   | ||||
| @@ -96,6 +96,8 @@ async def to_code(config): | ||||
|     if CORE.is_esp32: | ||||
|         cg.add_library("WiFiClientSecure", None) | ||||
|         cg.add_library("HTTPClient", None) | ||||
|     if CORE.is_esp8266: | ||||
|         cg.add_library("ESP8266HTTPClient", None) | ||||
|  | ||||
|     await cg.register_component(var, config) | ||||
|  | ||||
|   | ||||
| @@ -46,7 +46,9 @@ async def to_code(config): | ||||
|         mosi = await cg.gpio_pin_expression(config[CONF_MOSI_PIN]) | ||||
|         cg.add(var.set_mosi(mosi)) | ||||
|  | ||||
|     if CORE.is_esp32: | ||||
|     if CORE.is_esp32 and CORE.using_arduino: | ||||
|         cg.add_library("SPI", None) | ||||
|     if CORE.is_esp8266: | ||||
|         cg.add_library("SPI", None) | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -28,4 +28,4 @@ async def to_code(config): | ||||
|         cg.add_library("FS", None) | ||||
|         cg.add_library("Update", None) | ||||
|     # https://github.com/esphome/ESPAsyncWebServer/blob/master/library.json | ||||
|     cg.add_library("esphome/ESPAsyncWebServer-esphome", "2.0.0") | ||||
|     cg.add_library("esphome/ESPAsyncWebServer-esphome", "2.0.1") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user