X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=blobdiff_plain;f=adc.c;h=a6547e30e81f74c64b82fd73b1c9fc39515fe324;hp=9a5e31438834a7408acfd7e086935a14781da37f;hb=725eb5cc06d90f2d31fefe43cc0d02c21cf7698d;hpb=7306399bcbd0d7e86899476e4e7d91793825afa6 diff --git a/adc.c b/adc.c index 9a5e314..a6547e3 100644 --- a/adc.c +++ b/adc.c @@ -28,7 +28,7 @@ static void start_next_adc() --current_adc; // test if current_adc should be measured - if (current_adc < N_PWMLEDS && pwmled_is_on(current_adc)) + if (current_adc < N_PWMLEDS && pwmled_needs_adc(current_adc)) goto found; if (current_adc == AMBIENT_ADC) goto found;