AP_HAL_Linux: correct clearing of UART drivers

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

View File

@ -298,7 +298,7 @@ bool UARTDriver::discard_input()
if (!_initialised) {
return false;
}
_readbuf.empty();
_readbuf.clear();
return true;
}