From 2009c00dd09c171245d34a69384193249d5f88f2 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 28 Jun 2015 18:22:12 +0200 Subject: [PATCH] And now? Issue #2378 --- companion/src/firmwares/opentx/opentxeeprom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index f3cf9bb0e..99b25de50 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -60,7 +60,6 @@ class SwitchesConversionTable: public ConversionTable { for (int i=1; i<=MAX_SWITCHES_POSITION(board, version); i++) { int s = switchIndex(i, board, version); - addConversion(RawSwitch(SWITCH_TYPE_SWITCH, s), val); if (IS_TARANIS(board) && version < 217) { // SF positions 16 and 17 => 16 and 18 // SH positions 21 and 22 => 22 and 24 @@ -68,12 +67,14 @@ class SwitchesConversionTable: public ConversionTable { continue; } if (s >= 22) { + addConversion(RawSwitch(SWITCH_TYPE_SWITCH, s), val); addImportConversion(RawSwitch(SWITCH_TYPE_SWITCH, 21+22-s), -val+offset); addExportConversion(RawSwitch(SWITCH_TYPE_SWITCH, -s), -val+offset); val++; continue; } } + addConversion(RawSwitch(SWITCH_TYPE_SWITCH, s), val); addConversion(RawSwitch(SWITCH_TYPE_SWITCH, -s), -val+offset); val++; }