Skip to content

Commit

Permalink
Revert "Apply THR trim when cross triming (opentx#5664)"
Browse files Browse the repository at this point in the history
This reverts commit 1ebd289
  • Loading branch information
bsongis committed Jul 11, 2018
1 parent e10cbed commit 94bd8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ int getStickTrimValue(int stick, int stickValue)
return 0;

int trim = trims[stick];
if (IS_THROTTLE_TRIM(stick)) {
if (stick == THR_STICK) {
if (g_model.thrTrim) {
int trimMin = g_model.extendedTrims ? 2*TRIM_EXTENDED_MIN : 2*TRIM_MIN;
trim = ((g_model.throttleReversed ? (trim+trimMin) : (trim-trimMin)) * (RESX-stickValue)) >> (RESX_SHIFT+1);
Expand Down

0 comments on commit 94bd8a2

Please sign in to comment.