fix: disable override when both GF and SF are off (#4712)

This commit is contained in:
3djc
2024-03-10 19:58:55 +10:00
committed by GitHub
parent 3b984016ea
commit b271d9d5e3
+7
View File
@@ -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 ===============