]> www.fi.muni.cz Git - bike-lights.git/commitdiff
pwmled: do not probe pwmleds
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 25 Jun 2013 20:20:04 +0000 (22:20 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 26 Jun 2013 09:10:11 +0000 (11:10 +0200)
... just wait for them to be used by pattern.c.
TODO: remove the probing code altogether.

firmware/pwmled.c

index 3456e95e7d57c03160480a2985a14738a3190ab6..6158067c83151d798505711978f03a2536855c63 100644 (file)
@@ -82,7 +82,7 @@ void init_pwmled()
                led->target = adc_vals[i*N_PWMLED_MODES];
                led->mode = 1;
                led->probe_steady = 0;
-               led->state = ST_PROBING;
+               led->state = ST_OFF;
                led->pwm = 1;
                pwm_set(i, led->pwm);