EEPROM save process unification on ARM boards

This commit is contained in:
bsongis
2015-04-25 11:09:09 +02:00
parent 5ed9bfcee9
commit ba05538920
4 changed files with 25 additions and 15 deletions
+4 -3
View File
@@ -709,7 +709,7 @@ const pm_char * eeRestoreModel(uint8_t i_fileDst, char *model_name)
f_close(&g_oLogFile);
#if defined(CPUARM)
#if defined(PCBTARANIS)
if (version < EEPROM_VER) {
eeCheck(true);
ConvertModel(i_fileDst, version);
@@ -910,11 +910,12 @@ bool eeLoadGeneral()
}
}
#if defined(CPUARM)
#if defined(PCBTARANIS)
if (g_eeGeneral.version != EEPROM_VER) {
TRACE("EEPROM version %d instead of %d", g_eeGeneral.version, EEPROM_VER);
if (!eeConvert())
if (!eeConvert()) {
return false;
}
}
return true;
#else