]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/pwmled.c
delete pwm_off(), use pwm_set instead
[bike-lights.git] / firmware / pwmled.c
index 8dcb7603ab4006434ef833ec7767e81dbd2a22c5..798546737d358f303889fd7490f97644f2ff91b1 100644 (file)
@@ -28,7 +28,6 @@ static void start_probing(unsigned char n)
 {
        pwmled_state[n] = ST_PROBING;
        pwm_set(n, 0);
-       pwm_on(n);
        pwm_probes[n] = 0;
 }
 
@@ -87,7 +86,6 @@ void pwmled_set_mode(unsigned char n, unsigned char mode)
                mode--;
                pwmval = pwm_vals[n*N_PWMLED_MODES+mode];
                pwm_set(n, pwmval);
-               pwm_on(n);
 #if 0
                log_byte(pwmval);
 #endif