tmc: No need to delay init on a stepper enable

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-02-28 18:04:20 -05:00
parent ddb795bccc
commit 36ca639e1f
1 changed files with 2 additions and 3 deletions

View File

@ -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))