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 # Stepper enable/disable tracking
def _do_enable(self, print_time): def _do_enable(self, print_time):
try: try:
print_time -= 0.100 # Schedule slightly before deadline
if self.toff is not None: if self.toff is not None:
# Shared enable via comms handling # Shared enable via comms handling
val = self.fields.set_field("toff", self.toff) self.fields.set_field("toff", self.toff)
self._init_registers(print_time) self._init_registers()
self.echeck_helper.start_checks() self.echeck_helper.start_checks()
except self.printer.command_error as e: except self.printer.command_error as e:
self.printer.invoke_shutdown(str(e)) self.printer.invoke_shutdown(str(e))