mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 00:07:32 +00:00
Merge remote-tracking branch 'origin/esp8266-wake-loop-any-context' into integration
This commit is contained in:
@@ -643,6 +643,12 @@ class Application {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(USE_ESP8266) && defined(USE_SOCKET_IMPL_LWIP_TCP)
|
||||
/// Wake the main event loop from any context (ISR, thread, or main loop).
|
||||
/// On ESP8266: sets the socket wake flag and calls esp_schedule() to exit esp_delay() early.
|
||||
static void IRAM_ATTR wake_loop_any_context() { socket::socket_wake(); }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
friend Component;
|
||||
friend class socket::Socket;
|
||||
|
||||
Reference in New Issue
Block a user