Merge pull request #12 from DenisKnauf/master

leds_off only provided, if PLATFORM_HAS_LEDS is 1, not if defined.
This commit is contained in:
Harald 2018-03-02 08:24:53 +01:00 committed by GitHub
commit 9da22fbec4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

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