Apply #6036 equivalent to 2.3

This commit is contained in:
3djc
2018-07-12 12:22:07 +02:00
parent 12d675a0a7
commit 3556d7c0e8
4 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -531,7 +531,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);