diff --git a/src/system/flash.c b/src/system/flash.c --- a/src/system/flash.c +++ b/src/system/flash.c @@ -8,8 +8,8 @@ // Takes up 1 page (1k size) static __attribute__((__section__(".eeprom"))) uint16_t eeprom_emulation[512]; -settings_t settings; +therm_settings_t settings; // Initialize flash and restore settings void flash_init(void) @@ -19,7 +19,7 @@ void flash_init(void) // Save settings to flash memory -void flash_savesettings(void) +void flash_savesettings() { // Unlock flash memory HAL_FLASH_Unlock(); @@ -68,13 +68,13 @@ void flash_restoresettings(void) // No data in flash! Set defaults here else { - settings.values.can_id = 22; + //torestore.values.can_id = 22; } } // Accessor to retrieve settings structure -inline settings_t* flash_getsettings(void) +inline therm_settings_t* flash_getsettings(void) { return &settings; }