From 63ff047c16f327a0ec2e5a011a4a8768d28918ab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 20 Dec 2021 15:47:11 +1100 Subject: [PATCH] AP_RCProtocol: fixed multi-protocol search with added uart --- 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 729c14d040..b5d7cf336d 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol.cpp @@ -296,7 +296,7 @@ void AP_RCProtocol::check_added_uart(void) process_byte(uint8_t(b), added.baudrate); } } - if (!_detected_with_bytes) { + if (searching) { if (now - added.last_baud_change_ms > 1000) { // flip baudrates if not detected once a second added.phase = (enum config_phase)(uint8_t(added.phase) + 1);