From: Jan "Yenya" Kasprzak Date: Wed, 20 Feb 2013 21:47:24 +0000 (+0100) Subject: pwmled.c: shut down the boost converter later X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=fb3fd7b91398f2ad2cf344bdfff56e353972986a;p=bike-lights.git pwmled.c: shut down the boost converter later --- diff --git a/firmware/pwmled.c b/firmware/pwmled.c index 70cbcf1..99650d0 100644 --- a/firmware/pwmled.c +++ b/firmware/pwmled.c @@ -227,7 +227,7 @@ void pwmled_adc(unsigned char n, uint16_t adcval) led->err_sum = sum; if (led->pwm >= PWM_MAX - || (n == 1 && led->pwm > PWM_MAX/4 && adcval < 0x08)) { + || (n == 1 && led->pwm > PWM_MAX/2 && adcval < 0x08)) { pwmled_err(n); return; }