1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 22:35:12 +03:00

Switch warnings before 21 March 2013 imported OK

This commit is contained in:
Andre Bernet 2014-02-10 13:08:56 +01:00
parent 160cf07110
commit b39dd034c6

View file

@ -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;