Skip to content

Commit 848b0ae

Browse files
ci(pre-commit): Apply automatic fixes
1 parent be56836 commit 848b0ae

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

libraries/AsyncUDP/src/AsyncUDP.cpp

+11-9
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@ extern "C" {
1616
#include "lwip/priv/tcpip_priv.h"
1717

1818
#ifdef CONFIG_LWIP_TCPIP_CORE_LOCKING
19-
#define UDP_MUTEX_LOCK() if (!sys_thread_tcpip(LWIP_CORE_LOCK_QUERY_HOLDER)) { \
20-
LOCK_TCPIP_CORE(); \
21-
}
22-
23-
#define UDP_MUTEX_UNLOCK() if (sys_thread_tcpip(LWIP_CORE_LOCK_QUERY_HOLDER)) { \
24-
UNLOCK_TCPIP_CORE(); \
25-
}
26-
#else // CONFIG_LWIP_TCPIP_CORE_LOCKING
19+
#define UDP_MUTEX_LOCK() \
20+
if (!sys_thread_tcpip(LWIP_CORE_LOCK_QUERY_HOLDER)) { \
21+
LOCK_TCPIP_CORE(); \
22+
}
23+
24+
#define UDP_MUTEX_UNLOCK() \
25+
if (sys_thread_tcpip(LWIP_CORE_LOCK_QUERY_HOLDER)) { \
26+
UNLOCK_TCPIP_CORE(); \
27+
}
28+
#else // CONFIG_LWIP_TCPIP_CORE_LOCKING
2729
#define UDP_MUTEX_LOCK()
2830
#define UDP_MUTEX_UNLOCK()
29-
#endif // CONFIG_LWIP_TCPIP_CORE_LOCKING
31+
#endif // CONFIG_LWIP_TCPIP_CORE_LOCKING
3032

3133
static const char *netif_ifkeys[TCPIP_ADAPTER_IF_MAX] = {"WIFI_STA_DEF", "WIFI_AP_DEF", "ETH_DEF", "PPP_DEF"};
3234

0 commit comments

Comments
 (0)