Updated formatting

This commit is contained in:
Dave Marples 2020-02-14 23:02:02 +00:00
parent 4de2a1eb62
commit d13f04f953
1 changed files with 7 additions and 11 deletions

View File

@ -59,16 +59,12 @@ void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {
// Reads shadow registers 0x01 - 0x04 (Configuration and Manufacturing Info)
// into 8 bit wide destination, avoiding punning.
for (int i = 0; i < 4; ++i)
{
uint32_t wr = OCOTP_ReadFuseShadowRegister(OCOTP, i + 1);
for (int j = 0; j < 4; j++)
{
raw_id[i*4+j] = wr&0xff;
wr>>=8;
}
}
for (int i = 0; i < 4; ++i) {
uint32_t wr = OCOTP_ReadFuseShadowRegister(OCOTP, i + 1);
for (int j = 0; j < 4; j++) {
raw_id[i*4+j] = wr&0xff;
wr>>=8;
}
}
OCOTP_Deinit(OCOTP);
}