Initialize EEPROM data if file doesn't exist.

This commit is contained in:
Christian Speckner 2020-10-17 21:09:42 +02:00
parent 5da4c9eb1c
commit c462cc4680
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ MT24LC256::MT24LC256(const FilesystemNode& eepromfile, const System& system,
catch(...)
{
myDataFileExists = false;
myData = make_unique<uInt8[]>(FLASH_SIZE);
}
// Then initialize the I2C state