AP_RCProtocol: fixed multi-protocol search with added uart

This commit is contained in:
Andrew Tridgell 2021-12-20 15:47:11 +11:00 committed by Randy Mackay
parent 9984e56e53
commit 63ff047c16

View File

@ -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);