From: Jan "Yenya" Kasprzak Date: Wed, 29 Aug 2012 23:35:05 +0000 (+0200) Subject: pwmled reduce logging X-Git-Tag: gedasymbols-20120913~26 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=68fcf5619f12789503a82275f74d71c514ddd9be;p=bike-lights.git pwmled reduce logging --- diff --git a/pwmled.c b/pwmled.c index b4545e7..8870027 100644 --- a/pwmled.c +++ b/pwmled.c @@ -70,9 +70,11 @@ void pwmled_set_mode(unsigned char n, unsigned char mode) if (!pwmled_enabled(n)) return; +#if 0 log_byte(0xF8); log_byte(n); log_byte(mode); +#endif if (mode == 0) { pwm_off(n); @@ -86,7 +88,9 @@ void pwmled_set_mode(unsigned char n, unsigned char mode) pwmval = pwm_vals[n*N_PWMLED_MODES+mode]; pwm_set(n, pwmval); pwm_on(n); +#if 0 log_byte(pwmval); +#endif pwmled_state[n] = ST_ON; pwmled_mode[n] = mode; pwmled_mode_set[n] = 1; @@ -168,7 +172,7 @@ static void inline on_adc(unsigned char n, uint16_t adcval) uint16_t old_pwm = *pwm_p; uint16_t new_pwm = old_pwm; -#if 1 +#if 0 log_byte(0xF5); log_byte(n); log_word(adcval);