diff --git a/storage.c b/storage.c --- a/storage.c +++ b/storage.c @@ -14,6 +14,7 @@ void save_settings(therm_settings_t *tos Minimal_EEPROM_ProgramWord(EEPROM_BASE_ADDR + EEPROM_ADDR_K_D, k_d); Minimal_EEPROM_ProgramWord(EEPROM_BASE_ADDR + EEPROM_ADDR_UNITS, temp_units); Minimal_EEPROM_Lock(); + // TODO: Check for missing settings */ } @@ -58,6 +59,8 @@ void restore_settings(therm_settings_t * while(Minimal_FLASH_GetStatus()==FLASH_BUSY); temp_units = (*(__IO uint32_t*)(EEPROM_BASE_ADDR + EEPROM_ADDR_UNITS)); + // TODO: Check for missing settings + Minimal_EEPROM_Lock(); */ }