canbootloader:Fixed Warning

This commit is contained in:
David Sidrane 2021-01-12 14:41:07 -08:00 committed by Daniel Agar
parent 238c28d458
commit 271f87f8d2
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ int board_get_mfguid(mfguid_t mfgid)
uint32_t *chip_uuid = (uint32_t *) STM32_SYSMEM_UID;
uint32_t *rv = (uint32_t *) &mfgid[0];
for (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]);
}