From 4395ae96a73edcbcea24dd1dd0475f65f3fde80a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 4 Jan 2023 23:02:59 -0500 Subject: serialhdl: Add a get_serialqueue() method Signed-off-by: Kevin O'Connor --- klippy/mcu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/mcu.py') 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) -- cgit v1.2.3-70-g09d2