]> www.fi.muni.cz Git - bike-lights.git/commitdiff
adc.c: abort the current reading when the timer expires
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 2 Jul 2013 10:03:19 +0000 (12:03 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 2 Jul 2013 10:06:00 +0000 (12:06 +0200)
Inside the timer interrupt, we may have changed the PWM outputs,
so the reading of ADC will be useless. Drop it in this case.

FIXME: possible race condition against timer IRQ.


No differences found