Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Oct 7, 2023
1 parent e127c65 commit f00aab7
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 @@ -43,7 +43,7 @@ extern const AP_HAL::HAL& hal;
void AP_RCProtocol::init()
{
#if AP_RCPROTOCOL_PPMSUM_ENABLED
backend[AP_RCProtocol::PPM] = new AP_RCProtocol_PPMSum(*this, AP_RCProtocol::PPM);
backend[AP_RCProtocol::PPMSUM] = new AP_RCProtocol_PPMSum(*this, AP_RCProtocol::PPMSUM);
#endif
#if AP_RCPROTOCOL_IBUS_ENABLED
backend[AP_RCProtocol::IBUS] = new AP_RCProtocol_IBUS(*this, AP_RCProtocol::IBUS);
Expand Down Expand Up @@ -103,7 +103,7 @@ bool AP_RCProtocol::should_search(uint32_t now_ms) const
}
#else
// on IOMCU don't allow protocol to change once detected
if (_detected_protocol != AP_RCProtocol::NONE) {
if (_active_backend != nullptr) {
return false;
}
#endif
Expand Down

0 comments on commit f00aab7

Please sign in to comment.