mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_IOMCU: use new UARTDriver discard_input method
This commit is contained in:
parent
71f6262294
commit
f1182637a6
@ -389,10 +389,7 @@ void AP_IOMCU::read_servo()
|
||||
*/
|
||||
void AP_IOMCU::discard_input(void)
|
||||
{
|
||||
uint32_t n = uart.available();
|
||||
while (n--) {
|
||||
uart.read();
|
||||
}
|
||||
uart.discard_input();
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user