fix: Throttle stick not being detected properly (#3733)

* Fix thottle timer

* More THR source fixes
This commit is contained in:
3djc
2023-07-03 11:08:38 +10:00
committed by GitHub
parent 632eceba6d
commit d60b544e8c
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ getvalue_t getValueForLogicalSwitch(mixsrc_t i)
int8_t trimIdx = virtualInputsTrims[i-MIXSRC_FIRST_INPUT];
if (trimIdx >= 0) {
int16_t trim = trims[trimIdx];
if (trimIdx == THR_STICK && g_model.throttleReversed)
if (trimIdx == inputMappingConvertMode(inputMappingGetThrottle()) && g_model.throttleReversed)
result -= trim;
else
result += trim;