Skip to content

Commit b2c122b

Browse files
committed
Fix a signed and unsigned integer comparison warning
1 parent 92d1bfa commit b2c122b

File tree

1 file changed

+1
-1
lines changed
  • libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822

1 file changed

+1
-1
lines changed

libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void init_clock(void)
9292
/* For compatibility purpose, the default behaviour is to first attempt to initialise an
9393
external clock, and after a timeout, use the internal RC one. To avoid this wait, boards that
9494
don't have an external oscillator can set TARGET_NRF_LFCLK_RC directly. */
95-
int i = 0;
95+
uint32_t i = 0;
9696
const uint32_t polling_period = 200;
9797
const uint32_t timeout = 1000000;
9898

0 commit comments

Comments
 (0)