diff --git a/esphome/core/helpers.cpp b/esphome/core/helpers.cpp index 53bb6bfd79..9f9a1f10b1 100644 --- a/esphome/core/helpers.cpp +++ b/esphome/core/helpers.cpp @@ -21,9 +21,12 @@ #include "esp_system.h" #include #include -#elif defined(USE_RP2040) && defined(USE_WIFI) +#elif defined(USE_RP2040) +#if defined(USE_WIFI) #include +#endif #include +#include #endif #ifdef USE_ESP32_IGNORE_EFUSE_MAC_CRC