From: Jan "Yenya" Kasprzak Date: Sun, 16 Dec 2012 16:31:18 +0000 (+0100) Subject: control.c: on_patterns should not last forever X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=commitdiff_plain;h=f2a1b61c8c58ba290e073f53f3a0f461da9ce011 control.c: on_patterns should not last forever --- diff --git a/firmware/control.c b/firmware/control.c index eb35aca..5796835 100644 --- a/firmware/control.c +++ b/firmware/control.c @@ -30,15 +30,18 @@ static pattern_t panic_pattern[] = { }; pattern_t on1_pattern [] = { - { 1, PATTERN_FOREVER } + { 1, 0x10 }, + PATTERN_END }; static pattern_t on2_pattern [] = { - { 2, PATTERN_FOREVER } + { 2, 0x10 }, + PATTERN_END }; static pattern_t on3_pattern [] = { - { 3, PATTERN_FOREVER } + { 3, 0x10 }, + PATTERN_END }; static pattern_t normal2_pattern[] = {