]> www.fi.muni.cz Git - bike-lights.git/commitdiff
pwmled reduce logging
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 29 Aug 2012 23:35:05 +0000 (01:35 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 31 Aug 2012 21:08:11 +0000 (23:08 +0200)
pwmled.c

index b4545e7391b205e477d8d882012a566df7823ba4..88700271a6bc96ef175f02c891ed9b3ecf3a64ce 100644 (file)
--- 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);