erase eeprom section which belongs to M500 gcode in case that version was changed and default settings are used
This commit is contained in:
parent
8375e2cee3
commit
3bd892135a
6 changed files with 21 additions and 9 deletions
Firmware
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue