bugfix: commit 5c8504add6 broke importing of trim values for FM0 - they were all set to zero.

This commit is contained in:
Damjan Adamic
2014-04-30 21:20:07 +02:00
parent 3cd070ee38
commit 6b1afde47e
@@ -777,7 +777,7 @@ class FlightModeField: public TransformedField {
}
}
else {
if (phase.swtch == RawSwitch(SWITCH_TYPE_NONE)) {
if (phase.swtch == RawSwitch(SWITCH_TYPE_NONE) && index > 0) {
phase.trimRef[i] = 0;
phase.trimMode[i] = 0;
phase.trim[i] = 0;