aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2023-01-04 23:02:59 -0500
committerKevin O'Connor <kevin@koconnor.net>2023-01-06 11:59:35 -0500
commit4395ae96a73edcbcea24dd1dd0475f65f3fde80a (patch)
tree54baef0f5bb2e7b86b6e0b77c5032ce875158141 /klippy/mcu.py
parenta564824009cd63c12000198676ad8abaaa9c4efe (diff)
downloadkutter-4395ae96a73edcbcea24dd1dd0475f65f3fde80a.tar.gz
kutter-4395ae96a73edcbcea24dd1dd0475f65f3fde80a.tar.xz
kutter-4395ae96a73edcbcea24dd1dd0475f65f3fde80a.zip
serialhdl: Add a get_serialqueue() method
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 4aaf6269..ce1fee4c 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -71,7 +71,7 @@ class MCU_trsync:
"trsync_state oid=%c can_trigger=%c trigger_reason=%c clock=%u")
ffi_main, ffi_lib = chelper.get_ffi()
self._trdispatch_mcu = ffi_main.gc(ffi_lib.trdispatch_mcu_alloc(
- self._trdispatch, mcu._serial.serialqueue, # XXX
+ self._trdispatch, mcu._serial.get_serialqueue(), # XXX
self._cmd_queue, self._oid, set_timeout_tag, trigger_tag,
state_tag), ffi_lib.free)
def _shutdown(self):
@@ -746,7 +746,7 @@ class MCU:
raise error("Too few moves available on MCU '%s'" % (self._name,))
ffi_main, ffi_lib = chelper.get_ffi()
self._steppersync = ffi_main.gc(
- ffi_lib.steppersync_alloc(self._serial.serialqueue,
+ ffi_lib.steppersync_alloc(self._serial.get_serialqueue(),
self._stepqueues, len(self._stepqueues),
move_count-self._reserved_move_slots),
ffi_lib.steppersync_free)