Fix wrong expression of device ID in getMcuUniqueID()

This commit is contained in:
bluera1n committed 2020-01-17 00:40:55 +09:00
1 parent e01ac26d20
commit 979a68dbd2
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ const char* getMcuUniqueID(void)
// Skip if already created
if ( serial_str[0] == 0 )
{
sprintf(serial_str, "%08lu%08lu", NRF_FICR->DEVICEID[1], NRF_FICR->DEVICEID[0]);
sprintf(serial_str, "%08lX%08lX", NRF_FICR->DEVICEID[1], NRF_FICR->DEVICEID[0]);
}
return serial_str;