mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -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);
|
process_byte(uint8_t(b), added.baudrate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!_detected_with_bytes) {
|
if (searching) {
|
||||||
if (now - added.last_baud_change_ms > 1000) {
|
if (now - added.last_baud_change_ms > 1000) {
|
||||||
// flip baudrates if not detected once a second
|
// flip baudrates if not detected once a second
|
||||||
added.phase = (enum config_phase)(uint8_t(added.phase) + 1);
|
added.phase = (enum config_phase)(uint8_t(added.phase) + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user