AP_HAL_ChibiOS: correct clearing of UART drivers

This commit is contained in:
Peter Barker 2020-06-03 14:26:53 +10:00 committed by Andrew Tridgell
parent c936307ecf
commit 931c77fa77
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ bool UARTDriver::discard_input()
return false;
}
_readbuf.empty();
_readbuf.clear();
if (!_rts_is_active) {
update_rts_line();