From d651395891ebabc5f714146726c0780def623248 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 21 May 2023 18:45:43 +1000 Subject: [PATCH] AP_RCProtocol: return true on initial protocol detection we need to tell the IO firmware that a byte was consumed when we first detect a protocol as otherwise the next bad byte on DSM will lock us on the DSM port --- libraries/AP_RCProtocol/AP_RCProtocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_RCProtocol/AP_RCProtocol.cpp b/libraries/AP_RCProtocol/AP_RCProtocol.cpp index 5e1ee3d5cd..cffef306bc 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol.cpp @@ -219,7 +219,7 @@ bool AP_RCProtocol::process_byte(uint8_t byte, uint32_t baudrate) } // stop decoding pulses to save CPU hal.rcin->pulse_input_enable(false); - break; + return true; } } }