aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/pwm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/pwm.cpp')
-rw-r--r--wirish/pwm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wirish/pwm.cpp b/wirish/pwm.cpp
index 6b09cef..4c803d2 100644
--- a/wirish/pwm.cpp
+++ b/wirish/pwm.cpp
@@ -38,5 +38,5 @@ void pwmWrite(uint8 pin, uint16 duty_cycle) {
return;
}
- timer_set_compare(dev, PIN_MAP[pin].timer_chan, duty_cycle);
+ timer_set_compare(dev, PIN_MAP[pin].timer_channel, duty_cycle);
}