From eac783697a7a9055c3b1d1fff7bac49734ae6589 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 4 Apr 2026 10:48:30 -1000 Subject: [PATCH] Fix cpptests build: handle defines.h having both USE_ESP32 and USE_HOST --- esphome/core/application.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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