From: R. Steve McKown Date: Sat, 10 Dec 2011 07:18:14 +0000 (-0700) Subject: Fix behavior on pushbutton X-Git-Tag: 1.0~26 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=rgblamp.git;a=commitdiff_plain;h=4f58810d846981a1c180c60aa617fdcaba44d1a7 Fix behavior on pushbutton --- diff --git a/main.c b/main.c index e4ef0f0..e98dd04 100644 --- 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(); }