[RP2040W] Fix WiFi bootloop upon LibreTiny support (#5414)

This commit is contained in:
Ilia Sotnikov 2023-09-24 12:44:55 +03:00 committed by GitHub
parent 3c7c4e1dba
commit 0ca8dcd08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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