Skip to content

Commit 6c52214

Browse files
authored
Merge pull request #421 from bluera1n/develop-pr01
Fix wrong expression of device ID in getMcuUniqueID()
2 parents e01ac26 + 979a68d commit 6c52214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/nRF5/utility/utilities.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const char* getMcuUniqueID(void)
9393
// Skip if already created
9494
if ( serial_str[0] == 0 )
9595
{
96-
sprintf(serial_str, "%08lu%08lu", NRF_FICR->DEVICEID[1], NRF_FICR->DEVICEID[0]);
96+
sprintf(serial_str, "%08lX%08lX", NRF_FICR->DEVICEID[1], NRF_FICR->DEVICEID[0]);
9797
}
9898

9999
return serial_str;

0 commit comments

Comments
 (0)