Allow to compile the leds example for platforms with LEDS_LEGACY_API

This commit is contained in:
Atis Elsts 2018-03-09 14:47:45 +00:00
parent f28da42acf
commit 9eadf9feaa
1 changed files with 2 additions and 0 deletions

View File

@ -62,12 +62,14 @@ PROCESS_THREAD(leds_example, ev, data)
leds_on(LEDS_ALL);
} else if((counter & 7) == 3) {
leds_toggle(LEDS_ALL);
#if !LEDS_LEGACY_API
} else if((counter & 7) == 4) {
leds_single_on(LEDS_LED1);
} else if((counter & 7) == 5) {
leds_single_off(LEDS_LED1);
} else if((counter & 7) == 6) {
leds_single_toggle(LEDS_LED1);
#endif /* LEDS_LEGACY_API */
} else if((counter & 7) == 7) {
leds_toggle(LEDS_ALL);
}