mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 10:14:13 +01:00
[RP2040W] Fix WiFi bootloop upon LibreTiny support (#5414)
This commit is contained in:
parent
3c7c4e1dba
commit
0ca8dcd08e
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