AP_RCProtocol: fixed multi-protocol search with added uart

This commit is contained in:
Andrew Tridgell 2021-12-20 15:47:11 +11:00
parent d8ffd01145
commit a69cf0c936
1 changed files with 1 additions and 1 deletions

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