From 67e4756f1911d36309f72b489321cc17f49b308b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 23 May 2020 11:35:22 +1000 Subject: [PATCH] AP_Hott_Telem: use new UARTDriver discard_input method --- libraries/AP_Hott_Telem/AP_Hott_Telem.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/AP_Hott_Telem/AP_Hott_Telem.cpp b/libraries/AP_Hott_Telem/AP_Hott_Telem.cpp index 5ae8d04d57..5103013aab 100644 --- a/libraries/AP_Hott_Telem/AP_Hott_Telem.cpp +++ b/libraries/AP_Hott_Telem/AP_Hott_Telem.cpp @@ -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; }