AP_HAL: allow socket build for bootloader
This commit is contained in:
parent
e9b84fa94d
commit
40a029c15d
@ -99,6 +99,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));
|
sockaddr.sin_addr.s_addr = htonl(inet_str_to_addr(address));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(HAL_BOOTLOADER_BUILD)
|
||||||
/*
|
/*
|
||||||
connect the socket
|
connect the socket
|
||||||
*/
|
*/
|
||||||
@ -185,6 +186,7 @@ fail_multi:
|
|||||||
fd_in = -1;
|
fd_in = -1;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif // HAL_BOOTLOADER_BUILD
|
||||||
|
|
||||||
/*
|
/*
|
||||||
connect the socket with a timeout
|
connect the socket with a timeout
|
||||||
|
Loading…
Reference in New Issue
Block a user