Browse Source

AP_Hott_Telem: use new UARTDriver discard_input method

zr-v5.1
Peter Barker 5 years ago committed by Andrew Tridgell
parent
commit
67e4756f19
  1. 5
      libraries/AP_Hott_Telem/AP_Hott_Telem.cpp

5
libraries/AP_Hott_Telem/AP_Hott_Telem.cpp

@ -419,10 +419,7 @@ void AP_Hott_Telem::loop(void) @@ -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;
}

Loading…
Cancel
Save