From: Jan "Yenya" Kasprzak Date: Thu, 28 Mar 2013 22:36:26 +0000 (+0100) Subject: pwmleds: less measurements per run X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=442a8e127061e8bc51119fde3346cf88477b355f;p=bike-lights.git pwmleds: less measurements per run With low-pass filters at the input of PWMLED ADC pins, it is now relatively stable and noise-free, so we can lower the number of readings to two. Hopefully this will not cause instability. --- diff --git a/firmware/lights.h b/firmware/lights.h index af5eab6..772613a 100644 --- a/firmware/lights.h +++ b/firmware/lights.h @@ -25,7 +25,7 @@ void inline log_word(uint16_t word) { } #endif /* adc.c */ -#define PWMLED_ADC_SHIFT 3 /* 1<<3 measurements per single callback */ +#define PWMLED_ADC_SHIFT 1 /* 1<<1 measurements per single callback */ void init_adc(); void susp_adc(); void timer_start_slow_adcs();