mirror of
https://github.com/esphome/esphome.git
synced 2026-09-22 04:28:43 +00:00
Fix cpptests build: handle defines.h having both USE_ESP32 and USE_HOST
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user