1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-03 08:31:47 +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
#ifdef USE_SOCKET_IMPL_LWIP_SOCKETS
#include <lwip/sockets.h>
#elif defined(USE_SOCKET_IMPL_BSD_SOCKETS)
#ifdef USE_ESP32
#elif defined(USE_SOCKET_IMPL_BSD_SOCKETS) && defined(USE_ESP32)
#include <lwip/sockets.h>
#else
// True BSD sockets already included via sys/select.h
#endif
#endif
#endif // USE_WAKE_LOOP_THREADSAFE
#endif // USE_SOCKET_SELECT_SUPPORT