]> www.fi.muni.cz Git - bike-lights.git/blobdiff - adc.c
pwmled_is_on renamed to pwmled_needs_adc
[bike-lights.git] / adc.c
diff --git a/adc.c b/adc.c
index 9a5e31438834a7408acfd7e086935a14781da37f..a6547e30e81f74c64b82fd73b1c9fc39515fe324 100644 (file)
--- 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;