From 6b1afde47e2054547b884cf8fe8128e0aae396ea Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Wed, 30 Apr 2014 21:20:07 +0200 Subject: [PATCH] bugfix: commit 5c8504add6beb538822f71b9d4b6f9e6e4c75ba5 broke importing of trim values for FM0 - they were all set to zero. --- companion/src/firmwares/opentx/opentxeeprom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index fd29cb24c..475460ba7 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -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;