Owner registration initialized from CPU ID
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user