aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klippy/homing.py2
-rw-r--r--klippy/toolhead.py5
2 files changed, 4 insertions, 3 deletions
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
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index 33814674..676364dd 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -257,9 +257,10 @@ class ToolHead:
def get_last_move_time(self):
self._flush_lookahead()
return self.get_next_move_time()
- def reset_print_time(self):
+ def reset_print_time(self, min_print_time=0.):
self._flush_lookahead(must_sync=True)
- self.print_time = self.mcu.estimated_print_time(self.reactor.monotonic())
+ self.print_time = max(min_print_time, self.mcu.estimated_print_time(
+ self.reactor.monotonic()))
def _check_stall(self):
eventtime = self.reactor.monotonic()
if self.sync_print_time: