mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 09:03:57 -03:00
HAL_Linux: replace recvfrom with recv
This commit is contained in:
parent
5067359ed7
commit
f72d9c6393
@ -24,7 +24,7 @@ ssize_t UDPDevice::write(const uint8_t *buf, uint16_t n)
|
|||||||
|
|
||||||
ssize_t UDPDevice::read(uint8_t *buf, uint16_t n)
|
ssize_t UDPDevice::read(uint8_t *buf, uint16_t n)
|
||||||
{
|
{
|
||||||
return socket.recvfrom(buf, n, 0);
|
return socket.recv(buf, n, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UDPDevice::open()
|
bool UDPDevice::open()
|
||||||
|
Loading…
Reference in New Issue
Block a user