AP_IOMCU: use new UARTDriver discard_input method

This commit is contained in:
Peter Barker 2020-05-23 10:24:32 +10:00 committed by Andrew Tridgell
parent 71f6262294
commit f1182637a6
1 changed files with 1 additions and 4 deletions

View File

@ -389,10 +389,7 @@ void AP_IOMCU::read_servo()
*/ */
void AP_IOMCU::discard_input(void) void AP_IOMCU::discard_input(void)
{ {
uint32_t n = uart.available(); uart.discard_input();
while (n--) {
uart.read();
}
} }
/* /*