From 21b6b1b229ee0d0c0f2224a5ca646ae27175724e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 8 Sep 2024 14:19:53 +1000 Subject: [PATCH] AP_HAL: allow for multicast sockets in bootloader --- libraries/AP_HAL/utility/Socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL/utility/Socket.cpp b/libraries/AP_HAL/utility/Socket.cpp index 21835199ef..6f8509a4d0 100644 --- a/libraries/AP_HAL/utility/Socket.cpp +++ b/libraries/AP_HAL/utility/Socket.cpp @@ -100,7 +100,7 @@ void SOCKET_CLASS_NAME::make_sockaddr(const char *address, uint16_t port, struct sockaddr.sin_addr.s_addr = htonl(inet_str_to_addr(address)); } -#if !defined(HAL_BOOTLOADER_BUILD) +#if !defined(HAL_BOOTLOADER_BUILD) || AP_NETWORKING_CAN_MCAST_ENABLED /* connect the socket */ @@ -187,7 +187,7 @@ fail_multi: fd_in = -1; return false; } -#endif // HAL_BOOTLOADER_BUILD +#endif // !defined(HAL_BOOTLOADER_BUILD) || AP_NETWORKING_CAN_MCAST_ENABLED /* connect the socket with a timeout