aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-02-28 18:04:20 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-02-28 18:04:20 -0500
commit36ca639e1f345b190431eacef80fdebe6403f2a2 (patch)
tree4a1b667bd74ec8d618151f273acad2bc5d0ec309 /klippy/extras
parentddb795bcccf607a761d350c9bf1ea381b29b88fe (diff)
downloadkutter-36ca639e1f345b190431eacef80fdebe6403f2a2.tar.gz
kutter-36ca639e1f345b190431eacef80fdebe6403f2a2.tar.xz
kutter-36ca639e1f345b190431eacef80fdebe6403f2a2.zip
tmc: No need to delay init on a stepper enable
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/tmc.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/klippy/extras/tmc.py b/klippy/extras/tmc.py
index 11073e40..d3249540 100644
--- a/klippy/extras/tmc.py
+++ b/klippy/extras/tmc.py
@@ -230,11 +230,10 @@ class TMCCommandHelper:
# Stepper enable/disable tracking
def _do_enable(self, print_time):
try:
- print_time -= 0.100 # Schedule slightly before deadline
if self.toff is not None:
# Shared enable via comms handling
- val = self.fields.set_field("toff", self.toff)
- self._init_registers(print_time)
+ self.fields.set_field("toff", self.toff)
+ self._init_registers()
self.echeck_helper.start_checks()
except self.printer.command_error as e:
self.printer.invoke_shutdown(str(e))