From 177acbeffa07443a0e5f3f99bb0750467564bf23 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Fri, 12 Aug 2011 20:27:36 +0200 Subject: [PATCH] Restore state of LED at end --- firmware/l0dable/blink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/l0dable/blink.c b/firmware/l0dable/blink.c index da2ca9e..5e69dba 100644 --- a/firmware/l0dable/blink.c +++ b/firmware/l0dable/blink.c @@ -5,9 +5,11 @@ #include "usetable.h" void ram(void){ + char x = gpioGetValue(RB_LED1); + for (int x=0;x<20;x++){ gpioSetValue (RB_LED1, x%2); delayms(50); }; - gpioSetValue (RB_LED1, 0); + gpioSetValue (RB_LED1, x); };