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)
|
void AP_IOMCU::discard_input(void)
|
||||||
{
|
{
|
||||||
uint32_t n = uart.available();
|
uart.discard_input();
|
||||||
while (n--) {
|
|
||||||
uart.read();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user