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);