AP_HAL_SITL: correct clearing of UART drivers

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

View File

@ -176,7 +176,7 @@ int16_t UARTDriver::read(void)
bool UARTDriver::discard_input(void)
{
_readbuffer.empty();
_readbuffer.clear();
return true;
}