From 5e727c82a9beec9441e41bd48bc34d39adae2866 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 27 May 2025 14:35:40 -0500 Subject: [PATCH] if --- esphome/core/application.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/esphome/core/application.h b/esphome/core/application.h index 91d252c6cd..4ae58d04f0 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -564,7 +564,11 @@ class Application { const char *compilation_time_{nullptr}; bool name_add_mac_suffix_; uint32_t last_loop_{0}; - uint32_t loop_interval_{21}; +#if (defined(USE_SOCKET_IMPL_LWIP_SOCKETS) || defined(USE_SOCKET_IMPL_BSD_SOCKETS)) && defined(FD_SETSIZE) + uint32_t loop_interval_{21}; // Increased interval when select() is available for better efficiency +#else + uint32_t loop_interval_{16}; // Standard interval for platforms without select() +#endif size_t dump_config_at_{SIZE_MAX}; uint32_t app_state_{0}; Component *current_component_{nullptr};