Fix cpptests build: handle defines.h having both USE_ESP32 and USE_HOST

This commit is contained in:
J. Nick Koston
2026-04-04 10:48:30 -10:00
parent ffb2fe5f10
commit eac783697a
+3 -2
View File
@@ -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