AP_RCProtocol: allow changes of serial settings between protocols

if we are searching for new protocols then allow for baudrate table
changes
This commit is contained in:
Andrew Tridgell 2021-12-20 15:34:46 +11:00
parent deb2d6b782
commit 47590a55ff

View File

@ -300,7 +300,7 @@ void AP_RCProtocol::check_added_uart(void)
process_byte(uint8_t(b), current_baud); process_byte(uint8_t(b), current_baud);
} }
} }
if (!_detected_with_bytes) { if (searching) {
if (now - added.last_config_change_ms > 1000) { if (now - added.last_config_change_ms > 1000) {
// change configs if not detected once a second // change configs if not detected once a second
added.config_num++; added.config_num++;