From: Jan "Yenya" Kasprzak Date: Tue, 2 Jul 2013 10:03:19 +0000 (+0200) Subject: adc.c: abort the current reading when the timer expires X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=b34429defa04d493a49e24ad8840e42600bd0f28;hp=b34429defa04d493a49e24ad8840e42600bd0f28;p=bike-lights.git adc.c: abort the current reading when the timer expires 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. ---