1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-16 14:55:50 +00:00

[core][esp32_ble] Add wake_loop_threadsafe() helper for background thread wakeups

This commit is contained in:
J. Nick Koston
2025-11-02 21:51:39 -06:00
parent f11103c895
commit 2ac95abea7

View File

@@ -26,12 +26,8 @@
// Inline function drain_wake_notifications_() needs lwip socket functions // Inline function drain_wake_notifications_() needs lwip socket functions
#ifdef USE_SOCKET_IMPL_LWIP_SOCKETS #ifdef USE_SOCKET_IMPL_LWIP_SOCKETS
#include <lwip/sockets.h> #include <lwip/sockets.h>
#elif defined(USE_SOCKET_IMPL_BSD_SOCKETS) #elif defined(USE_SOCKET_IMPL_BSD_SOCKETS) && defined(USE_ESP32)
#ifdef USE_ESP32
#include <lwip/sockets.h> #include <lwip/sockets.h>
#else
// True BSD sockets already included via sys/select.h
#endif
#endif #endif
#endif // USE_WAKE_LOOP_THREADSAFE #endif // USE_WAKE_LOOP_THREADSAFE
#endif // USE_SOCKET_SELECT_SUPPORT #endif // USE_SOCKET_SELECT_SUPPORT