Merge pull request #342 from atiselsts/contrib/leds-examples
Allow to compile the leds example for platforms with LEDS_LEGACY_API
This commit is contained in:
commit
c99ace0bb4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user