mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
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
Block a user