summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-08-25 20:29:14 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-08-25 20:29:14 +0200
commitfa226809b09ee675b2fdd40e37f25a5b8ae2a79e (patch)
tree7ed6528d76c0dc8116ffc488f2167b5c9f9c68f3
parentvusb-led example works now (diff)
fix led lib init
-rw-r--r--lib/led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/led.c b/lib/led.c
index 1ba512b..774066d 100644
--- a/lib/led.c
+++ b/lib/led.c
@@ -107,7 +107,7 @@ void led_init(void)
{
#if NUM_LEDS >= 1
led_off();
- LED_DDR = 1<<LED_PINNUM;
+ LED_DDR |= 1<<LED_PINNUM;
#if NUM_LEDS >= 2
LED2_DDR |= 1<<LED2_PINNUM;
#endif