5
0
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:
Andrew Tridgell 2015-07-29 08:39:29 +10:00
parent 5067359ed7
commit f72d9c6393

View File

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