mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Linux: correct clearing of UART drivers
This commit is contained in:
parent
931c77fa77
commit
f3bee7fa03
|
@ -298,7 +298,7 @@ bool UARTDriver::discard_input()
|
|||
if (!_initialised) {
|
||||
return false;
|
||||
}
|
||||
_readbuf.empty();
|
||||
_readbuf.clear();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue