Conversion tests were inverted

This commit is contained in:
Bertrand Songis
2019-03-20 10:14:15 +01:00
parent 6277717c16
commit 098727ffc5
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -18,14 +18,14 @@ if(EEPROM_CONVERSIONS)
)
endif()
if(EEPROM_CONVERSIONS GREATER 215)
if(EEPROM_CONVERSIONS LESS 218)
set(SRC
${SRC}
storage/conversions/conversions_216_218.cpp
)
endif()
if(EEPROM_CONVERSIONS GREATER 217)
if(EEPROM_CONVERSIONS LESS 219)
set(SRC
${SRC}
storage/conversions/conversions_218_219.cpp
@@ -25,21 +25,21 @@ void convertModelData(int id, int version)
{
eeLoadModelData(id);
#if EEPROM_CONVERSIONS >= 216
#if EEPROM_CONVERSIONS < 217
if (version == 216) {
version = 217;
convertModelData_216_to_217(g_model);
}
#endif
#if EEPROM_CONVERSIONS >= 217
#if EEPROM_CONVERSIONS < 218
if (version == 217) {
version = 218;
convertModelData_217_to_218(g_model);
}
#endif
#if EEPROM_CONVERSIONS >= 218
#if EEPROM_CONVERSIONS < 219
if (version == 218) {
version = 219;
convertModelData_218_to_219(g_model);
@@ -89,21 +89,21 @@ bool eeConvert()
eeLoadGeneralSettingsData();
int version = conversionVersionStart;
#if EEPROM_CONVERSIONS >= 216
#if EEPROM_CONVERSIONS < 217
if (version == 216) {
version = 217;
convertRadioData_216_to_217(g_eeGeneral);
}
#endif
#if EEPROM_CONVERSIONS >= 217
#if EEPROM_CONVERSIONS < 218
if (version == 217) {
version = 218;
convertRadioData_217_to_218(g_eeGeneral);
}
#endif
#if EEPROM_CONVERSIONS >= 218
#if EEPROM_CONVERSIONS < 219
if (version == 218) {
version = 219;
// no conversion needed for now