From 113edd2076a97d13a89c83e9a33f8d99957a1bd2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 4 Apr 2026 11:46:21 -1000 Subject: [PATCH] Fix CI: remove redundant (void) in main_task.h, restore lwip_fast_select.h include for socket monitoring --- esphome/core/application.h | 3 +++ esphome/core/main_task.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/esphome/core/application.h b/esphome/core/application.h index c3e2a42660d..474639b556d 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -24,6 +24,9 @@ #include "esphome/core/area.h" #endif +#ifdef USE_LWIP_FAST_SELECT +#include "esphome/core/lwip_fast_select.h" +#endif #ifdef USE_HOST #include #include diff --git a/esphome/core/main_task.h b/esphome/core/main_task.h index 8ea46afe35b..183ce650274 100644 --- a/esphome/core/main_task.h +++ b/esphome/core/main_task.h @@ -20,7 +20,7 @@ extern "C" { extern TaskHandle_t esphome_main_task_handle; /// Wake the main loop task from another FreeRTOS task. NOT ISR-safe. -static inline void esphome_main_task_notify(void) { +static inline void esphome_main_task_notify() { TaskHandle_t task = esphome_main_task_handle; if (task != NULL) { xTaskNotifyGive(task); @@ -37,7 +37,7 @@ static inline void esphome_main_task_notify_from_isr(int *px_higher_priority_tas #ifdef USE_ESP32 /// Wake the main loop from any context (ISR or task). ESP32-only (needs xPortInIsrContext). -static inline void esphome_main_task_notify_any_context(void) { +static inline void esphome_main_task_notify_any_context() { if (xPortInIsrContext()) { int px_higher_priority_task_woken = 0; esphome_main_task_notify_from_isr(&px_higher_priority_task_woken);