mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 23:46:25 -06:00
stepper: Query the stepper mcu position during startup
Try to keep the host mcu_position synchronized with the micro-controller by querying during startup and after every homing event. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
33dcb38297
commit
24586f0c31
3 changed files with 12 additions and 8 deletions
|
@ -122,7 +122,7 @@ class MCU_trsync:
|
|||
params = self._trsync_query_cmd.send([self._oid,
|
||||
self.REASON_HOST_REQUEST])
|
||||
for s in self._steppers:
|
||||
s.note_homing_end(did_trigger=True) # XXX
|
||||
s.note_homing_end()
|
||||
return params['trigger_reason']
|
||||
|
||||
class MCU_endstop:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue