mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_SITL: correct clearing of UART drivers
This commit is contained in:
parent
f3bee7fa03
commit
f842c27070
|
@ -176,7 +176,7 @@ int16_t UARTDriver::read(void)
|
|||
|
||||
bool UARTDriver::discard_input(void)
|
||||
{
|
||||
_readbuffer.empty();
|
||||
_readbuffer.clear();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue