]> oss.titaniummirror.com Git - rgblamp.git/commitdiff
Always fade between colors
authorR. Steve McKown <rsmckown@gmail.com>
Wed, 7 Dec 2011 02:52:55 +0000 (19:52 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Wed, 7 Dec 2011 02:52:55 +0000 (19:52 -0700)
The A and B positions now act exactly the same, except B engages auto-off.

main.c

diff --git a/main.c b/main.c
index 840d83aab4542727f239d6614fca593239885f84..8f51cf26e926ab289e9713ddb08e74afa8226db5 100644 (file)
--- 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;