Merge pull request #421 from bluera1n/develop-pr01

Fix wrong expression of device ID in getMcuUniqueID()
This commit is contained in:
Ha Thach authored and GitHub committed 2020-01-17 10:45:35 +07:00
commit 6c52214a40
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;