Replicate center trim beep behavior also when crossing trims (#5693)

* Replicate center trim beep behavior also when crossing trims

* Cosmetics
This commit is contained in:
3djc
2018-03-04 13:11:22 +01:00
committed by Andre Bernet
parent a9716a340d
commit 6bd38ce13a
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -647,7 +647,7 @@ int getStickTrimValue(int stick, int stickValue)
return 0;
int trim = trims[stick];
if (stick == virtualInputsTrims[THR_STICK]) {
if (IS_THROTTLE_TRIM(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);