diff --git a/esphome/core/application.h b/esphome/core/application.h index 858269e09b7..75b59c57118 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -648,6 +648,7 @@ class Application { /// Detects the calling context and uses the appropriate FreeRTOS API. static void IRAM_ATTR wake_loop_any_context() { esphome_lwip_wake_main_loop_any_context(); } #endif +#endif #if defined(USE_ESP8266) && defined(USE_SOCKET_IMPL_LWIP_TCP) /// Wake the main event loop from any context (ISR, thread, or main loop).