|
|
@ -52,12 +52,11 @@ void EEPROMSettings::seal(void) {
|
|
|
|
|
|
|
|
|
|
|
|
CRC.finalize();
|
|
|
|
CRC.finalize();
|
|
|
|
|
|
|
|
|
|
|
|
if (settings_.magic[0] != 'K' || settings_.magic[1] != 'S') {
|
|
|
|
/* Until we set a version, consider the EEPROM contents flexible, and always
|
|
|
|
settings_.magic[0] = 'K';
|
|
|
|
* update the CRC. This will always result in the settings being considered
|
|
|
|
settings_.magic[1] = 'S';
|
|
|
|
* valid.
|
|
|
|
settings_.version = 0;
|
|
|
|
*/
|
|
|
|
settings_.crc = CRC.crc;
|
|
|
|
if (settings_.version == 0xff) {
|
|
|
|
|
|
|
|
|
|
|
|
return update();
|
|
|
|
return update();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|