From 3829dd2f209a619a71521c37dc271f1a02087d8d Mon Sep 17 00:00:00 2001 From: Robert Olsson Date: Fri, 24 Mar 2017 17:37:37 +0100 Subject: [PATCH] Leds toggle added modified: platform/avr-rss2/dev/leds.c --- platform/avr-rss2/dev/leds.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/avr-rss2/dev/leds.c b/platform/avr-rss2/dev/leds.c index c59f9d09f..ec228f804 100644 --- a/platform/avr-rss2/dev/leds.c +++ b/platform/avr-rss2/dev/leds.c @@ -33,6 +33,12 @@ leds_off(unsigned char ledv) void leds_toggle(unsigned char ledv) { + if(ledv & LEDS_YELLOW) { + PORTE ^= (1 << LED_YELLOW); + } + if(ledv & LEDS_RED) { + PORTE ^= (1 << LED_RED); + } } void leds_invert(unsigned char ledv)