Owner registration initialized from CPU ID

This commit is contained in:
Bertrand Songis
2019-02-13 14:25:24 +01:00
parent cdfb75addd
commit 12434590f4
+3 -1
View File
@@ -302,7 +302,9 @@ void generalDefault()
theme->init();
#endif
memcpy(g_eeGeneral.ownerRegistrationID, &cpu_uid[1], PXX2_LEN_REGISTRATION_ID);
for (uint8_t i=0; i<PXX2_LEN_REGISTRATION_ID; i++) {
g_eeGeneral.ownerRegistrationID[i] = (cpu_uid[1 + i] & 0x3f) - 32;
}
g_eeGeneral.chkSum = 0xFFFF;
}