diff --git a/esphome/core/application.h b/esphome/core/application.h index a5bacde9976..d67baad005f 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -916,9 +916,10 @@ inline void ESPHOME_ALWAYS_INLINE Application::yield_with_select_(uint32_t delay // Sleep with instant wake via FreeRTOS task notification. // Woken by: callback wrapper (socket data), wake_loop_threadsafe() (background tasks), or timeout. esphome::wakeable_delay(delay_ms); -#else - // All other platforms: wakeable delay broken early by wake_loop_any_context() / wake_loop_threadsafe() +#elif defined(USE_ESP8266) || defined(USE_RP2040) esphome::wakeable_delay(delay_ms); +#else + delay(delay_ms); #endif } #endif // !USE_SOCKET_SELECT_SUPPORT