]> oss.titaniummirror.com Git - rgblamp.git/commitdiff
Remove debug auto off/on and fade/incolor options
authorR. Steve McKown <rsmckown@gmail.com>
Sat, 10 Dec 2011 07:59:26 +0000 (00:59 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sat, 10 Dec 2011 07:59:26 +0000 (00:59 -0700)
Both sets of functions are working correctly.

main.c

diff --git a/main.c b/main.c
index 9f910dfbe6841e0dd0d29fac0d01418fbd1ca450..ac75428bce7ca04780b8eae92afbd45dbd24d986 100644 (file)
--- a/main.c
+++ b/main.c
 #include "task.h"
 #include "adc_random.h"
 
-#if 0
 #define AUTO_OFF_COUNT          549316UL  /*  5 hrs in 32.768 ms units */
 #define AUTO_ON_COUNT           2087402UL /* 19 hrs in 32.768 ms units */
-#else
-#define AUTO_OFF_COUNT          1831 /* 1 minute in 32.768 ms units */
-#define AUTO_ON_COUNT           3662 /* 2 minutes in 32.768 ms units */
-#endif
 #define rand_u8()               (rand() & 0xff)
 #define rand_u16()              ((rand() << 8) + rand_u8())
 #define rand_incolor_steps(s)   (min_incolor_steps[s & 3] + \
@@ -68,17 +63,10 @@ typedef struct {
 } led_t;
 
 /* The index of all step arrays is the speed variable */
-#if 1
 const static unsigned min_incolor_steps[4] =   {   320,  32, 32,  1 };
 const static unsigned range_incolor_steps[4] = { 32768, 128, 32,  8 };
 const static int min_fade_steps[4] =           {    64,  32, 32,  1 };
 const static int range_fade_steps[4] =         {   416, 128, 32,  8 };
-#else /* for debugging */
-const static unsigned min_incolor_steps[4] =   { 64, 32, 16,  8 };
-const static unsigned range_incolor_steps[4] = {  1,  1,  1,  1 };
-const static int min_fade_steps[4] =           { 64, 32, 16,  8 };
-const static int range_fade_steps[4] =         {  1,  1,  1,  1 };
-#endif
 
 led_t red;
 led_t grn;