mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
s32k14x:canbootloader board_identity Return the same word ordering as s32k1xx/version/board_identity
This commit is contained in:
committed by
David Sidrane
parent
a0491bfb9a
commit
01e9418310
@@ -54,7 +54,7 @@ int board_get_mfguid(mfguid_t mfgid)
|
|||||||
uint32_t *rv = (uint32_t *) &mfgid[0];
|
uint32_t *rv = (uint32_t *) &mfgid[0];
|
||||||
|
|
||||||
for (unsigned int i = 0; i < PX4_CPU_UUID_WORD32_LENGTH; i++) {
|
for (unsigned int i = 0; i < PX4_CPU_UUID_WORD32_LENGTH; i++) {
|
||||||
*rv++ = SWAP_UINT32(chip_uuid[(PX4_CPU_UUID_WORD32_LENGTH - 1) - i]);
|
*rv++ = SWAP_UINT32(chip_uuid[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return PX4_CPU_MFGUID_BYTE_LENGTH;
|
return PX4_CPU_MFGUID_BYTE_LENGTH;
|
||||||
|
|||||||
Reference in New Issue
Block a user