Merge pull request #405 from g-oikonomou/contrib/led-hal/no-led-support

Allow the LED HAL to work on platforms without LEDs
This commit is contained in:
Simon Duquennoy 2018-04-02 20:32:47 +02:00 committed by GitHub
commit 3a8be60c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()