updated settings version number. Old settings must be reset now that we have changed the format of the settings
This commit is contained in:
parent
4869e7b1cc
commit
a24fe19720
2 changed files with 2 additions and 2 deletions
2
config.c
2
config.c
|
|
@ -59,7 +59,7 @@ void dump_settings() {
|
|||
|
||||
int read_settings() {
|
||||
// Check version-byte of eeprom
|
||||
uint8_t version = eeprom_get_char(0);
|
||||
uint8_t version = eeprom_get_char(0);
|
||||
if (version != SETTINGS_VERSION) { return(FALSE); }
|
||||
// Read settings-record and check checksum
|
||||
if (!(memcpy_from_eeprom_with_checksum((char*)&settings, 1, sizeof(struct Settings)))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue