diff --git a/config.c b/config.c index 6f41dd0..8f81343 100644 --- a/config.c +++ b/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)))) { diff --git a/config.h b/config.h index e21d265..67dba49 100644 --- a/config.h +++ b/config.h @@ -60,7 +60,7 @@ // Version of the EEPROM data. Will be used to migrate existing data from older versions of Grbl // when firmware is upgraded. Always stored in byte 0 of eeprom -#define SETTINGS_VERSION 1 +#define SETTINGS_VERSION 2 // Current global settings (persisted in EEPROM from byte 1 onwards) struct Settings {