From: Jan "Yenya" Kasprzak Date: Mon, 3 Jun 2013 20:07:26 +0000 (+0200) Subject: adc.c: fix uninitialized value X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=09d91b6d1d9c5c6dd9971d9f16e31f66b9c5474e;p=bike-lights.git adc.c: fix uninitialized value --- diff --git a/firmware/adc.c b/firmware/adc.c index 1dbedfc..9ed80f2 100644 --- a/firmware/adc.c +++ b/firmware/adc.c @@ -158,6 +158,7 @@ void init_adc() unsigned char i; current_adc = 0; adc_is_on = 1; + slow_adcs_wanted = FIRST_1S_ADC; ADCSRA = _BV(ADEN) // enable | _BV(ADPS1) | _BV(ADPS0) // CLK/8 = 125 kHz