From 5451d45f5fdc920be9b8cfe5bc5c67eb3bea33e4 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Fri, 1 Aug 2014 18:40:10 +0100 Subject: [PATCH] OLIMEXINO - Fix build when LEDs not used. --- src/main/drivers/light_led_stm32f10x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/drivers/light_led_stm32f10x.c b/src/main/drivers/light_led_stm32f10x.c index d862dd777..cb535759c 100644 --- a/src/main/drivers/light_led_stm32f10x.c +++ b/src/main/drivers/light_led_stm32f10x.c @@ -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 }