aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-06-27 13:17:03 -0400
committerKevinOConnor <kevin@koconnor.net>2019-07-10 10:43:20 -0400
commit07e8925e08941d5416200630ea2d877afcc5c8e9 (patch)
tree0ebbea13869eb2fd8b8cf9bb00491fa623667ba1 /klippy/toolhead.py
parentdd34768e3afb6b5aa46885109182973d88df10b7 (diff)
downloadkutter-07e8925e08941d5416200630ea2d877afcc5c8e9.tar.gz
kutter-07e8925e08941d5416200630ea2d877afcc5c8e9.tar.xz
kutter-07e8925e08941d5416200630ea2d877afcc5c8e9.zip
toolhead: Remove no longer needed reset_print_time()
Now that homing is implemented via "drip moves", it is no longer necessary to move the print_time backwards. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index 48754b61..a97cc440 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -326,10 +326,6 @@ class ToolHead:
if self.special_queuing_state:
self._calc_print_time()
return self.print_time
- def reset_print_time(self, min_print_time=0.):
- self._full_flush()
- est_print_time = self.mcu.estimated_print_time(self.reactor.monotonic())
- self.print_time = max(min_print_time, est_print_time)
def _check_stall(self):
eventtime = self.reactor.monotonic()
if self.special_queuing_state:
@@ -392,11 +388,10 @@ class ToolHead:
self.move_queue.add_move(move)
if self.print_time > self.need_check_stall:
self._check_stall()
- def dwell(self, delay, check_stall=True):
+ def dwell(self, delay):
self.get_last_move_time()
self.update_move_time(delay)
- if check_stall:
- self._check_stall()
+ self._check_stall()
def motor_off(self):
self.dwell(STALL_TIME)
last_move_time = self.get_last_move_time()
@@ -488,7 +483,6 @@ class ToolHead:
self.motor_off()
def _handle_shutdown(self):
self.move_queue.reset()
- self.reset_print_time()
def get_kinematics(self):
return self.kin
def get_max_velocity(self):