From: R. Steve McKown Date: Wed, 7 Dec 2011 02:52:55 +0000 (-0700) Subject: Always fade between colors X-Git-Tag: 1.0~46 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=rgblamp.git;a=commitdiff_plain;h=76c773e273d37fbda42c357237df80cf32eaac53 Always fade between colors The A and B positions now act exactly the same, except B engages auto-off. --- diff --git a/main.c b/main.c index 840d83a..8f51cf2 100644 --- a/main.c +++ b/main.c @@ -163,7 +163,7 @@ int main(void) /* Next incolor and fade steps */ incolor_steps = rand_incolor_steps(speed); - fade_steps = (buttons & IN_ROCKERA) ? 1 : rand_fade_steps(speed); + fade_steps = rand_fade_steps(speed); /* Compute increment and remainder for each led */ red.increment = (newr - red.value) / fade_steps;