mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
OLIMEXINO - Fix build when LEDs not used.
This commit is contained in:
parent
61bdc2ad5d
commit
5451d45f5f
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
void ledInit(void)
|
void ledInit(void)
|
||||||
{
|
{
|
||||||
|
#if defined(LED0) || defined(LED1) || defined(LED2)
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
@ -64,5 +65,7 @@ void ledInit(void)
|
||||||
for (i = 0; i < gpio_count; i++) {
|
for (i = 0; i < gpio_count; i++) {
|
||||||
gpioInit(gpio_setup[i].gpio, &gpio_setup[i].cfg);
|
gpioInit(gpio_setup[i].gpio, &gpio_setup[i].cfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue