Firmware2/Marlin
victorpv 8998f31ee1 Update LPC persistent store to initialize eeprom.dat with FF
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.
2017-10-07 02:18:42 -05:00
..
lib Module updates 2017-09-21 16:26:42 -05:00
src Update LPC persistent store to initialize eeprom.dat with FF 2017-10-07 02:18:42 -05:00
Configuration_adv.h Add serial XON/XOFF handshaking 2017-10-02 04:12:30 -05:00
Configuration.h Misc general spacing cleanup 2017-10-06 15:14:01 -05:00
Marlin.ino Main controller updates 2017-09-21 16:26:44 -05:00