mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
@@ -677,8 +677,7 @@ void Application::yield_with_select_(uint32_t delay_ms) {
|
||||
// until consumed by ulTaskNotifyTake, so notifications received while the task is
|
||||
// running are not lost. The only unhandled case is intentionally undrained sockets
|
||||
// (e.g., API's MAX_MESSAGES_PER_LOOP throttle), where the delay_ms latency before
|
||||
// re-checking is the desired behavior — waking immediately would defeat the throttle
|
||||
// which exists to let other tasks and components run.
|
||||
// re-checking is the desired behavior — waking immediately would defeat the throttle.
|
||||
ulTaskNotifyTake(pdTRUE, pdMS_TO_TICKS(delay_ms));
|
||||
|
||||
#elif defined(USE_SOCKET_SELECT_SUPPORT)
|
||||
|
||||
Reference in New Issue
Block a user