From f2d602690ec258a49e9131d96ecf24e98d07fa97 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 13 Jul 2018 08:50:46 +1000 Subject: [PATCH] HAL_ChibiOS: fixed build error with some compilers --- libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c index 23f4b9353d..1c09052b75 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c @@ -263,7 +263,8 @@ void peripheral_power_enable(void) // we don't know what state the bootloader had the CTS pin in, so // wait here with it pulled up from the PAL table for enough time // for the radio to be definately powered down - for (uint8_t i=0; i<100; i++) { + uint8_t i; + for (i=0; i<100; i++) { // use a loop as this may be a 16 bit timer chThdSleep(MS2ST(1)); }