From f842c270707d60e5f19081de9cf1f9088aaa85d8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 3 Jun 2020 14:35:01 +1000 Subject: [PATCH] AP_HAL_SITL: correct clearing of UART drivers --- libraries/AP_HAL_SITL/UARTDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_SITL/UARTDriver.cpp b/libraries/AP_HAL_SITL/UARTDriver.cpp index 1a2c85aa0b..bbf15c3dea 100644 --- a/libraries/AP_HAL_SITL/UARTDriver.cpp +++ b/libraries/AP_HAL_SITL/UARTDriver.cpp @@ -176,7 +176,7 @@ int16_t UARTDriver::read(void) bool UARTDriver::discard_input(void) { - _readbuffer.empty(); + _readbuffer.clear(); return true; }