]> www.fi.muni.cz Git - bike-lights.git/commitdiff
adc.c: fix uninitialized value
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 3 Jun 2013 20:07:26 +0000 (22:07 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 3 Jun 2013 20:07:26 +0000 (22:07 +0200)
firmware/adc.c

index 1dbedfc2c2e36fbb4f19c369152efeb7e614d291..9ed80f2d216b069412a2a12a53444c048d8a57eb 100644 (file)
@@ -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