From 47590a55ffc7e513ecbe8828b00f9ccf7403cf60 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 20 Dec 2021 15:34:46 +1100 Subject: [PATCH] AP_RCProtocol: allow changes of serial settings between protocols if we are searching for new protocols then allow for baudrate table changes --- 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 e95d2c526a..7a53e5b1e6 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol.cpp @@ -300,7 +300,7 @@ void AP_RCProtocol::check_added_uart(void) process_byte(uint8_t(b), current_baud); } } - if (!_detected_with_bytes) { + if (searching) { if (now - added.last_config_change_ms > 1000) { // change configs if not detected once a second added.config_num++;