AVR version handling issues
This commit is contained in:
@@ -183,6 +183,7 @@ class Boards
|
||||
|
||||
#define IS_9X(board) (board==Board::BOARD_STOCK || board==Board::BOARD_M128)
|
||||
#define IS_STOCK(board) (board==Board::BOARD_STOCK)
|
||||
#define IS_M128(board) (board==Board::BOARD_M128)
|
||||
#define IS_2560(board) (board==Board::BOARD_GRUVIN9X || board==Board::BOARD_MEGA2560)
|
||||
#define IS_SKY9X(board) (board==Board::BOARD_SKY9X || board==Board::BOARD_9XRPRO || board==Board::BOARD_AR9X)
|
||||
#define IS_9XRPRO(board) (board==Board::BOARD_9XRPRO)
|
||||
|
||||
@@ -880,9 +880,14 @@ EepromLoadErrors OpenTxEepromInterface::checkVersion(unsigned int version)
|
||||
// M128 revert because too much RAM used!
|
||||
case 216:
|
||||
// A lot of things (first github release)
|
||||
if (IS_2560(board) || IS_M128(board)) {
|
||||
return OLD_VERSION;
|
||||
}
|
||||
case 217:
|
||||
// 3 logical switches removed on M128 / gruvin9x boards
|
||||
return OLD_VERSION;
|
||||
if (IS_ARM(board)) {
|
||||
return OLD_VERSION;
|
||||
}
|
||||
case 218:
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user