From 6469cce2bca855d52f44dd596941423a674af8df Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 27 Sep 2017 19:21:26 -0400 Subject: toolhead: Make sure reset_print_time() doesn't go backwards in time Update the homing code to pass in the start of the homing operation to toolhead.reset_print_time(). This prevents an error when batch processing gcode files that contain multiple homing operations. Signed-off-by: Kevin O'Connor --- klippy/homing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/homing.py') diff --git a/klippy/homing.py b/klippy/homing.py index f75a7d06..9fd816fd 100644 --- a/klippy/homing.py +++ b/klippy/homing.py @@ -40,7 +40,7 @@ class Homing: endstops.append((s, s.mcu_stepper.get_mcu_position())) self.toolhead.move(self._fill_coord(movepos), speed) move_end_print_time = self.toolhead.get_last_move_time() - self.toolhead.reset_print_time() + self.toolhead.reset_print_time(print_time) for s, last_pos in endstops: s.mcu_endstop.home_finalize(move_end_print_time) # Wait for endstops to trigger -- cgit v1.2.3-70-g09d2