Skip to content

Commit 979a68d

Browse files
author
bluera1n
committed
Fix wrong expression of device ID in getMcuUniqueID()
1 parent e01ac26 commit 979a68d

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)