--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;
void pwmled_init();
void pwmled_adc(unsigned char n, uint16_t adcval);
void pwmled_set_mode(unsigned char n, unsigned char mode);
-unsigned char pwmled_is_on(unsigned char n);
+unsigned char pwmled_needs_adc(unsigned char n);
/* gpio.c */
#define GPIO_LED1 0
}
}
-unsigned char pwmled_is_on(unsigned char n)
+unsigned char pwmled_needs_adc(unsigned char n)
{
unsigned char st = pwmled_state[n];
if (st == ST_PROBING || st == ST_ON)