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
+1 -9
View File
@@ -81,18 +81,10 @@ void checkSpeakerVolume()
void checkEeprom()
{
if (!usbPlugged()) {
// TODO merge these 2 branches
#if defined(PCBSKY9X)
if (eepromWriteState != EEPROM_IDLE)
if (eepromIsWriting())
eepromWriteProcess();
else if (TIME_TO_WRITE())
eeCheck(false);
#else
if (theFile.isWriting())
theFile.nextWriteStep();
else if (TIME_TO_WRITE())
eeCheck(false);
#endif
}
}