mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
HAL_ChibiOS: fixed build error with some compilers
This commit is contained in:
parent
83f38d536e
commit
f2d602690e
@ -263,7 +263,8 @@ void peripheral_power_enable(void)
|
|||||||
// we don't know what state the bootloader had the CTS pin in, so
|
// 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
|
// wait here with it pulled up from the PAL table for enough time
|
||||||
// for the radio to be definately powered down
|
// 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
|
// use a loop as this may be a 16 bit timer
|
||||||
chThdSleep(MS2ST(1));
|
chThdSleep(MS2ST(1));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user