From d72aa9ce2f786a787aa14fcbc9e37a58b63e6ecb Mon Sep 17 00:00:00 2001 From: Nicolas Rabault Date: Fri, 26 Jan 2024 09:08:25 +0100 Subject: [PATCH] Improve Native Serial high data rate support --- network/serial_network/HAL/NATIVE/serial_network_hal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/serial_network/HAL/NATIVE/serial_network_hal.c b/network/serial_network/HAL/NATIVE/serial_network_hal.c index bf7ca9912..2696f2002 100644 --- a/network/serial_network/HAL/NATIVE/serial_network_hal.c +++ b/network/serial_network/HAL/NATIVE/serial_network_hal.c @@ -344,7 +344,7 @@ void SerialHAL_Send(uint8_t *data, uint16_t size) while (bytesWritten < size) { // Wait for the buffer to be empty - usleep(100); + usleep(1000); ioctl(serial_port, TIOCOUTQ, &bytes_in_buffer); bytesWritten += write(serial_port, &data[bytesWritten], size - bytesWritten); if (bytesWritten < 0)