Skip to content

Commit

Permalink
Improve Native Serial high data rate support
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Jan 29, 2024
1 parent 436a500 commit d72aa9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/serial_network/HAL/NATIVE/serial_network_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d72aa9c

Please sign in to comment.