AP_Hott_Telem: use new UARTDriver discard_input method

This commit is contained in:
Peter Barker 2020-05-23 11:35:22 +10:00 committed by Andrew Tridgell
parent de2055b57f
commit 67e4756f19

View File

@ -419,10 +419,7 @@ void AP_Hott_Telem::loop(void)
continue;
}
if (n > 2) {
while (n--) {
uart->read();
hal.scheduler->delay_microseconds(100);
}
uart->discard_input();
continue;
}