aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-03-04 13:32:18 -0500
committerKevin O'Connor <kevin@koconnor.net>2022-03-04 13:38:59 -0500
commitfe2974b8ec1e41c16e8b37551443c1a7ea6717a5 (patch)
treef34c626f9fcc0902408f84ddf6197668c40938a5 /klippy/stepper.py
parent4815a946c2861408475a15986d021d694908f728 (diff)
downloadkutter-fe2974b8ec1e41c16e8b37551443c1a7ea6717a5.tar.gz
kutter-fe2974b8ec1e41c16e8b37551443c1a7ea6717a5.tar.xz
kutter-fe2974b8ec1e41c16e8b37551443c1a7ea6717a5.zip
extruder: Verify trapq is unmodified on default SET_PRESSURE_ADVANCE
Check that a SET_PRESSURE_ADVANCE without an explicit EXTRUDER parameter isn't done after the user disables or reassociates the extruder stepper motor (via SYNC_EXTRUDER_MOTION). Otherwise, it could lead to very confusing results. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index 304d7d82..ad7d1282 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -197,6 +197,8 @@ class MCU_stepper:
raise error("Internal error in stepcompress")
self._set_mcu_position(last_pos)
self._mcu.get_printer().send_event("stepper:sync_mcu_position", self)
+ def get_trapq(self):
+ return self._trapq
def set_trapq(self, tq):
ffi_main, ffi_lib = chelper.get_ffi()
if tq is None: