From: Jan "Yenya" Kasprzak Date: Wed, 26 Jun 2013 22:14:38 +0000 (+0200) Subject: control.c: night pattern fix X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=a9f5950ef3cd0faa7bf628cb485bd24d7aafdb5b;p=bike-lights.git control.c: night pattern fix Use pwmled2 mode 2 for standalone, and mode 3 for pwmled2+0, to be consistent with brake handling in pattern.c. --- diff --git a/firmware/control.c b/firmware/control.c index 3012ba6..c5ba92f 100644 --- a/firmware/control.c +++ b/firmware/control.c @@ -50,12 +50,12 @@ static pattern_t fast_pattern[] = { }; static pattern_t night_pattern[] = { - { PWM_PAT(2, 0, 2), D_3 }, - { PWM_PAT(3, 0, 0), D_8 }, - { PWM_PAT(2, 0, 2), D_1 }, - { PWM_PAT(3, 0, 0), D_2 }, - { PWM_PAT(2, 0, 2), D_1 }, - { PWM_PAT(3, 0, 0), D_8 }, + { PWM_PAT(3, 0, 1), D_3 }, + { PWM_PAT(2, 0, 0), D_8 }, + { PWM_PAT(3, 0, 1), D_1 }, + { PWM_PAT(2, 0, 0), D_2 }, + { PWM_PAT(3, 0, 1), D_1 }, + { PWM_PAT(2, 0, 0), D_8 }, PATTERN_END };