mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
[RP2040W] Fix WiFi bootloop upon LibreTiny support (#5414)
This commit is contained in:
parent
b07a038bc8
commit
a42788812e
1 changed files with 3 additions and 0 deletions
|
@ -152,6 +152,9 @@ CONFIG_SCHEMA = cv.All(
|
|||
async def to_code(config):
|
||||
cg.add(rp2040_ns.setup_preferences())
|
||||
|
||||
# Allow LDF to properly discover dependency including those in preprocessor
|
||||
# conditionals
|
||||
cg.add_platformio_option("lib_ldf_mode", "chain+")
|
||||
cg.add_platformio_option("board", config[CONF_BOARD])
|
||||
cg.add_build_flag("-DUSE_RP2040")
|
||||
cg.add_define("ESPHOME_BOARD", config[CONF_BOARD])
|
||||
|
|
Loading…
Reference in a new issue