From b39dd034c68b9507970ca2ee4fb32027eae9c8b6 Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Mon, 10 Feb 2014 13:08:56 +0100 Subject: [PATCH] Switch warnings before 21 March 2013 imported OK --- 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 5baa9248f..9e466046b 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -1302,7 +1302,7 @@ class SwitchesWarningField: public TransformedField { sw = _sw >> 1; } else if (!afterrelease21March2013) { - sw = ((_sw & 0xC1) + ((_sw & 0x38) >> 2) + ((_sw & 0x06) << 3)) >> 1; + sw = ((_sw & 0x30) >> 4) + ((_sw & 0x0E) << 1) + ((_sw & 0xC0) >> 1); } else { sw = _sw;