Fixes #1436 - Be careful, there is a conversion on M128/gruvin9x boards,

L13, L14 and L15 are removed
This commit is contained in:
bsongis
2014-07-04 12:23:08 +02:00
parent b8a6548686
commit 711b54c98e
13 changed files with 10 additions and 29 deletions
@@ -369,10 +369,10 @@ int OpenTxEepromInterface::save(uint8_t *eeprom, RadioData &radioData, uint32_t
break;
case BOARD_GRUVIN9X:
case BOARD_MEGA2560:
version = 216;
version = 217;
break;
case BOARD_M128:
version = 216;
version = 217;
break;
case BOARD_STOCK:
version = 216;
@@ -561,8 +561,6 @@ int OpenTxFirmware::getCapability(const Capability capability)
case LogicalSwitches:
if (IS_ARM(board))
return 32;
else if (board==BOARD_GRUVIN9X||board==BOARD_M128)
return 15;
else
return 12;
case CustomAndSwitches:
@@ -876,6 +874,9 @@ bool OpenTxEepromInterface::checkVersion(unsigned int version)
case 216:
// A lot of things (first github release)
break;
case 217:
// 3 logical switches removed on M128 / gruvin9x boards
break;
default:
return false;
}