diff options
Diffstat (limited to 'wirish/pwm.c')
-rw-r--r-- | wirish/pwm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wirish/pwm.c b/wirish/pwm.c index 2f555ab..072e4cd 100644 --- a/wirish/pwm.c +++ b/wirish/pwm.c @@ -38,13 +38,11 @@ void pwmWrite(uint8 pin, uint16 duty_cycle) { return; } - ccr = PIN_MAP[pin].timer_channel; + ccr = PIN_MAP[pin].timer_ccr; - if (ccr == TIMER_INVALID) { + if (ccr == 0) { return; } timer_pwm_write_ccr(ccr, duty_cycle); } - - |