erase eeprom section which belongs to M500 gcode in case that version was changed and default settings are used

This commit is contained in:
PavelSindler 2018-02-05 16:49:06 +01:00
parent 8375e2cee3
commit 3bd892135a
6 changed files with 21 additions and 9 deletions

View file

@ -136,10 +136,12 @@ void Config_StoreSettings(uint16_t offset, uint8_t level)
}
#endif //LIN_ADVANCE
/*MYSERIAL.print("Top address used:\n");
/* MYSERIAL.print("Top address used:\n");
MYSERIAL.print(i);
MYSERIAL.print("\n");
*/
MYSERIAL.print("; (0x");
MYSERIAL.print(i, HEX);
MYSERIAL.println(")");
*/
char ver2[4]=EEPROM_VERSION;
i=offset;
EEPROM_WRITE_VAR(i,ver2); // validate data