Tools: use new UARTDriver discard_input method
This commit is contained in:
parent
90038339dc
commit
de2055b57f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user