]> oss.titaniummirror.com Git - rgblamp.git/commitdiff
Fix behavior on pushbutton
authorR. Steve McKown <rsmckown@gmail.com>
Sat, 10 Dec 2011 07:18:14 +0000 (00:18 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sat, 10 Dec 2011 07:18:14 +0000 (00:18 -0700)
main.c

diff --git a/main.c b/main.c
index e4ef0f0ca52af3680129fe9d4322936a5109d280..e98dd0474b6a05b6e26f73c936899f3a82fc9728 100644 (file)
--- a/main.c
+++ b/main.c
@@ -148,7 +148,8 @@ void pb_task()
 {
   if (btn_pb() == BTN_PB_UP) {
     speed = (speed + 1) & ~4;
-    fade_steps = 0;
+    tmr_stop(TMR_INCOLOR);
+    start_fade();
   }
   btn_pben();
 }