fix(radio): Instant trim only works correctly in mode 1 (#4491)

This commit is contained in:
philmoz
2024-01-01 07:48:43 +10:00
committed by GitHub
parent 685e9ec5bc
commit 44f73a68d4
+3 -2
View File
@@ -1137,8 +1137,9 @@ void instantTrim()
evalInputs(e_perout_mode_notrainer);
auto controls = adcGetMaxInputs(ADC_INPUT_MAIN);
for (uint8_t stick = 0; stick < controls; stick++) {
if (stick != inputMappingConvertMode(inputMappingGetThrottle())) { // don't instant trim the throttle stick
for (uint8_t st = 0; st < controls; st++) {
uint8_t stick = inputMappingConvertMode(st);
if (stick != inputMappingGetThrottle()) { // don't instant trim the throttle stick
bool addTrim = false;
int16_t delta = 0;
uint8_t trimFlightMode = getTrimFlightMode(mixerCurrentFlightMode, stick);