From cdae06e571da27337bab0be1ab6cc781889467fb Mon Sep 17 00:00:00 2001 From: Jon Krause <29214674+juanboro@users.noreply.github.com> Date: Sun, 8 Jun 2025 14:40:25 -1000 Subject: [PATCH] Force socket ready when high frequency looping (#9032) --- esphome/core/application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/core/application.cpp b/esphome/core/application.cpp index f60015af38..aa3a2fe829 100644 --- a/esphome/core/application.cpp +++ b/esphome/core/application.cpp @@ -285,6 +285,8 @@ bool Application::is_socket_ready(int fd) const { // This function is thread-safe for reading the result of select() // However, it should only be called after select() has been executed in the main loop // The read_fds_ is only modified by select() in the main loop + if (HighFrequencyLoopRequester::is_high_frequency()) + return true; // fd sets via select are not updated in high frequency looping - so force true fallback behavior if (fd < 0 || fd >= FD_SETSIZE) return false;