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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user