Allow the LED HAL to work on platforms without LEDs

This commit is contained in:
George Oikonomou 2018-04-01 14:31:06 +01:00
parent 941d8457b4
commit 84a74907f3

View File

@ -97,7 +97,11 @@ leds_toggle(leds_mask_t ledv)
/*---------------------------------------------------------------------------*/
#else /* LEDS_LEGACY_API */
/*---------------------------------------------------------------------------*/
#if LEDS_COUNT
extern const leds_t leds_arch_leds[];
#else
static const leds_t *leds_arch_leds = NULL;
#endif
/*---------------------------------------------------------------------------*/
void
leds_init()