AP_HAL: allow for multicast sockets in bootloader

This commit is contained in:
Andrew Tridgell 2024-09-08 14:19:53 +10:00
parent 05d43fd00b
commit 21b6b1b229
1 changed files with 2 additions and 2 deletions

View File

@ -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