aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-02-06 14:07:55 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-02-12 17:20:40 -0500
commit617983921530bf29488b3a3694baa6a3851824f5 (patch)
treeb936d14d362eae625f0d3afa19cffdb0ba512324 /klippy/gcode.py
parent0ca96e543c1a00239e3c3818476c68898099a23e (diff)
downloadkutter-617983921530bf29488b3a3694baa6a3851824f5.tar.gz
kutter-617983921530bf29488b3a3694baa6a3851824f5.tar.xz
kutter-617983921530bf29488b3a3694baa6a3851824f5.zip
toolhead: Separate motor off timer from main flush timer
Move the motor off time checking to its own code. This simplifies the main flush handler. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 8b33e26a..d0c57bef 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -181,7 +181,7 @@ class GCodeParser:
return
eventtime = self.reactor.monotonic()
while self.is_printer_ready and heater.check_busy(eventtime):
- self.toolhead.reset_motor_off_time(eventtime)
+ print_time = self.toolhead.get_last_move_time()
self.respond(self.get_temp())
eventtime = self.reactor.pause(eventtime + 1.)
def set_temp(self, heater, params, wait=False):