X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=adc.c;h=a6547e30e81f74c64b82fd73b1c9fc39515fe324;hb=725eb5cc06d90f2d31fefe43cc0d02c21cf7698d;hp=9a5e31438834a7408acfd7e086935a14781da37f;hpb=f2662355cbf4bbf12904561a9258bab3e1b031bc;p=bike-lights.git 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;