Skip to content

Commit

Permalink
fix: disable override when both GF and SF are off (#4712)
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc authored Mar 10, 2024
1 parent 3b98401 commit b271d9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions radio/src/mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,13 @@ void evalMixes(uint8_t tick10ms)
} else {
modelFunctionsContext.reset();
}
#if defined(OVERRIDE_CHANNEL_FUNCTION)
if (!radioGFEnabled() && !modelSFEnabled()) {
for (uint8_t i = 0; i < MAX_OUTPUT_CHANNELS; i++) {
safetyCh[i] = OVERRIDE_CHANNEL_UNDEFINED;
}
}
#endif
}

//========== LIMITS ===============
Expand Down

0 comments on commit b271d9d

Please sign in to comment.