leds_off only provided, if PLATFORM_HAS_LEDS is 1, not if defined.

This commit is contained in:
Denis Knauf 2018-03-01 20:21:09 +01:00
parent 3d255ed6f8
commit ca431d2e46
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ extern resource_t res_sht11;
void void
hw_init() hw_init()
{ {
#if defined (PLATFORM_HAS_LEDS) #if PLATFORM_HAS_LEDS
leds_off(LEDS_RED); leds_off(LEDS_RED);
#endif #endif
} }

View file

@ -93,7 +93,7 @@ extern resource_t res_radio;
void void
hw_init() hw_init()
{ {
#if defined (PLATFORM_HAS_LEDS) #if PLATFORM_HAS_LEDS
leds_arch_init(); leds_arch_init();
LEDS_OFF(); LEDS_OFF();
#endif #endif