1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 15:12:06 +00:00

ESP8266 disable PIO LDF (#2608)

This commit is contained in:
Otto Winter
2021-10-23 19:44:55 +02:00
committed by GitHub
parent 8e77e3c685
commit de06a781ff
6 changed files with 11 additions and 3 deletions

View File

@@ -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)