Fixes #3547: Flight modes linked trims display value (#3568) (ported from master)

This commit is contained in:
Neil Horne
2016-06-09 19:37:22 +02:00
committed by Damjan Adamic
parent a7e1867878
commit beb21ab7db
+2 -4
View File
@@ -1510,9 +1510,7 @@ int ModelData::getTrimValue(int phaseIdx, int trimIdx)
}
else {
phaseIdx = phase.trimRef[trimIdx];
if (phase.trimMode[trimIdx] == 0)
result = 0;
else
if (phase.trimMode[trimIdx] != 0)
result += phase.trim[trimIdx];
}
}
@@ -1858,4 +1856,4 @@ unsigned int getNumSubtypes(MultiModuleRFProtocols type) {
return 1;
}
}
}