1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

OLIMEXINO - Fix build when LEDs not used.

This commit is contained in:
Dominic Clifton 2014-08-01 18:40:10 +01:00
parent 61bdc2ad5d
commit 5451d45f5f

View file

@ -29,6 +29,7 @@
void ledInit(void)
{
#if defined(LED0) || defined(LED1) || defined(LED2)
uint32_t i;
struct {
@ -64,5 +65,7 @@ void ledInit(void)
for (i = 0; i < gpio_count; i++) {
gpioInit(gpio_setup[i].gpio, &gpio_setup[i].cfg);
}
#endif
}