]> www.fi.muni.cz Git - bike-lights.git/commitdiff
control.c: on_patterns should not last forever
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 16 Dec 2012 16:31:18 +0000 (17:31 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 16 Dec 2012 16:31:18 +0000 (17:31 +0100)
firmware/control.c

index eb35aca947ba3be71a0b2b53bb58d96e5e7ad7cd..57968357f970ad8284cd97f3021cf40eccacd17f 100644 (file)
@@ -30,15 +30,18 @@ static pattern_t panic_pattern[] = {
 };
 
 pattern_t on1_pattern [] = {
 };
 
 pattern_t on1_pattern [] = {
-       { 1, PATTERN_FOREVER }
+       { 1, 0x10 },
+       PATTERN_END
 };
 
 static pattern_t on2_pattern [] = {
 };
 
 static pattern_t on2_pattern [] = {
-       { 2, PATTERN_FOREVER }
+       { 2, 0x10 },
+       PATTERN_END
 };
 
 static pattern_t on3_pattern [] = {
 };
 
 static pattern_t on3_pattern [] = {
-       { 3, PATTERN_FOREVER }
+       { 3, 0x10 },
+       PATTERN_END
 };
 
 static pattern_t normal2_pattern[] = {
 };
 
 static pattern_t normal2_pattern[] = {