Skip to content

Commit

Permalink
AP_RCProtocol: correct assignment of new_input in rcprotocol detecion
Browse files Browse the repository at this point in the history
caused RCP protocol detection to break for everything other than DroneCAN
  • Loading branch information
peterbarker committed Feb 23, 2024
1 parent b19f8ed commit 26d4e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_RCProtocol/AP_RCProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ bool AP_RCProtocol::new_input()
#endif
};
for (const auto protocol : pollable) {
_new_input = detect_async_protocol(protocol);
if (!_new_input) {
if (!detect_async_protocol(protocol)) {
continue;
}
_new_input = true;
_last_input_ms = AP_HAL::millis();
break;
}
Expand Down

0 comments on commit 26d4e0d

Please sign in to comment.