fix: disable override when both GF and SF are off (#4712)
This commit is contained in:
@@ -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 ===============
|
||||
|
||||
Reference in New Issue
Block a user