From: Jan "Yenya" Kasprzak Date: Tue, 25 Jun 2013 20:20:04 +0000 (+0200) Subject: pwmled: do not probe pwmleds X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=cede7e08bdc10f43d0e6c3ef130f6ccac76630df;p=bike-lights.git pwmled: do not probe pwmleds ... just wait for them to be used by pattern.c. TODO: remove the probing code altogether. --- diff --git a/firmware/pwmled.c b/firmware/pwmled.c index 3456e95..6158067 100644 --- a/firmware/pwmled.c +++ b/firmware/pwmled.c @@ -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);