From 271f87f8d29ad4c6a284dac8e5643b1c8f288146 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 12 Jan 2021 14:41:07 -0800 Subject: [PATCH] canbootloader:Fixed Warning --- platforms/nuttx/src/canbootloader/arch/stm32/board_identity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/nuttx/src/canbootloader/arch/stm32/board_identity.c b/platforms/nuttx/src/canbootloader/arch/stm32/board_identity.c index a976b3a76a..a716ad2f12 100644 --- a/platforms/nuttx/src/canbootloader/arch/stm32/board_identity.c +++ b/platforms/nuttx/src/canbootloader/arch/stm32/board_identity.c @@ -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]); }