mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_RCProtocol: fixed multi-protocol search with added uart
This commit is contained in:
parent
9984e56e53
commit
63ff047c16
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user