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;
|
n = 500;
|
||||||
}
|
}
|
||||||
if (len == 0 && !frame_gap) {
|
if (len == 0 && !frame_gap) {
|
||||||
// discard
|
uart->discard_input();
|
||||||
while (n--) {
|
|
||||||
uart->read();
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user