aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/replicape.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-11-25 19:25:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-12-04 16:10:13 -0500
commit9e293be5e03ce399eb39ecef0f7831edca66762c (patch)
tree5070742e3bb4fb05adb529495ca23f38eb305beb /klippy/extras/replicape.py
parent19a96346a8e662e865751dbd926fc2fa3807a541 (diff)
downloadkutter-9e293be5e03ce399eb39ecef0f7831edca66762c.tar.gz
kutter-9e293be5e03ce399eb39ecef0f7831edca66762c.tar.xz
kutter-9e293be5e03ce399eb39ecef0f7831edca66762c.zip
pca9685: Use move queue for pwm updates
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/replicape.py')
-rw-r--r--klippy/extras/replicape.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/replicape.py b/klippy/extras/replicape.py
index 27def9f3..59d46ed8 100644
--- a/klippy/extras/replicape.py
+++ b/klippy/extras/replicape.py
@@ -63,6 +63,7 @@ class pca9685_pwm:
self._bus, self._address, self._channel,
cycle_ticks, self._start_value * self._pwm_max))
return
+ self._mcu.request_move_queue_slot()
self._oid = self._mcu.create_oid()
self._mcu.add_config_cmd(
"config_pca9685 oid=%d bus=%d addr=%d channel=%d cycle_ticks=%d"
@@ -73,7 +74,7 @@ class pca9685_pwm:
self._mcu.seconds_to_clock(self._max_duration)))
cmd_queue = self._mcu.alloc_command_queue()
self._set_cmd = self._mcu.lookup_command(
- "schedule_pca9685_out oid=%c clock=%u value=%hu", cq=cmd_queue)
+ "queue_pca9685_out oid=%c clock=%u value=%hu", cq=cmd_queue)
def set_pwm(self, print_time, value, cycle_time=None):
clock = self._mcu.print_time_to_clock(print_time)
if self._invert: