mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 03:18:28 +02:00
ESP8266 disable PIO LDF (#2608)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user