[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 Jesse Hills
parent b07a038bc8
commit a42788812e
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

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