Improved EEPROM-Formatting
This commit is contained in:
@@ -137,16 +137,16 @@ void GetPersistence_EEPROM()
|
||||
|
||||
void FormatConfig_EEPROM()
|
||||
{
|
||||
LubeConfig_t defaults;
|
||||
LubeConfig = defaults;
|
||||
Serial.println("Formatting Config-Partition");
|
||||
LubeConfig = LubeConfig_defaults;
|
||||
LubeConfig.EEPROM_Version = eeVersion;
|
||||
StoreConfig_EEPROM();
|
||||
}
|
||||
|
||||
void FormatPersistence_EEPROM()
|
||||
{
|
||||
persistenceData_t defaults;
|
||||
PersistenceData = defaults;
|
||||
Serial.println("Formatting Persistance-Partition");
|
||||
memset(&PersistenceData, 0, sizeof(PersistenceData));
|
||||
StorePersistence_EEPROM();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user