Tools: use new UARTDriver discard_input method

This commit is contained in:
Peter Barker 2020-05-23 10:24:33 +10:00 committed by Andrew Tridgell
parent 90038339dc
commit de2055b57f

View File

@ -49,10 +49,7 @@ bool HWESC_Telem::update()
n = 500;
}
if (len == 0 && !frame_gap) {
// discard
while (n--) {
uart->read();
}
uart->discard_input();
return false;
}