OLIMEXINO - Fix build when LEDs not used.
This commit is contained in:
parent
61bdc2ad5d
commit
5451d45f5f
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue