mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
HAL_ChibiOS: fixed RTSCTS flow control issue
this fixes an issue reported on MatekH743, but also applies to other boards. When not using DMA if there have been bytes written before the auto flow control detection was enabled then these must be cleared from _total_written so the flow control detection can work correctly
This commit is contained in:
parent
4fcd3756af
commit
0ad778f4c1
@ -1093,6 +1093,7 @@ void UARTDriver::write_pending_bytes(void)
|
||||
if (_flow_control == FLOW_CONTROL_AUTO) {
|
||||
if (_first_write_started_us == 0) {
|
||||
_first_write_started_us = AP_HAL::micros();
|
||||
_total_written = 0;
|
||||
}
|
||||
#ifndef HAL_UART_NODMA
|
||||
if (tx_dma_enabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user