mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-24 04:29:34 +00:00
8998f31ee1
This change initialize any data in eeprom.dat beyond the current file size to FF. That way if eeprom.dat is deleted and created again, it doesn't take the old values or random ones, but rather starts with FF in all positions as a real brand new or erased eeprom.dat Currently if you delete eeprom.dat and restart the board, the new file is created in the same sector with the same content, since FAT does not actually delete the data, just marks the sector as free. I tested by deleting the file, and then rebooting the board, and checking the file content. The change can be tested in the same way, deleting, rebooting the board, and then the new content should be all FF. If an eeprom file already exist with data on it, but smaller than E2END, it will be padded with FF on first access, so it will not have random or old content appended. |
||
---|---|---|
.. | ||
lib | ||
src | ||
Configuration_adv.h | ||
Configuration.h | ||
Marlin.ino |