aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-07-28 14:59:04 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-07-30 12:53:59 -0400
commit1f7c3fc8ec37319cb3b9309343d301a9d30afdfd (patch)
tree3ef42f47d9943b4f0628d84250313eb54bb796ec
parent9213646c63c6027a7c43ad254ba9cf09ebd166df (diff)
downloadkutter-1f7c3fc8ec37319cb3b9309343d301a9d30afdfd.tar.gz
kutter-1f7c3fc8ec37319cb3b9309343d301a9d30afdfd.tar.xz
kutter-1f7c3fc8ec37319cb3b9309343d301a9d30afdfd.zip
gcode: Report the final print_time in debuginput mode
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/extras/stepper_enable.py2
-rw-r--r--klippy/gcode.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/stepper_enable.py b/klippy/extras/stepper_enable.py
index 7baeca71..f35385b0 100644
--- a/klippy/extras/stepper_enable.py
+++ b/klippy/extras/stepper_enable.py
@@ -91,7 +91,6 @@ class PrinterStepperEnable:
el.motor_disable(print_time)
self.printer.send_event("stepper_enable:motor_off", print_time)
toolhead.dwell(DISABLE_STALL_TIME)
- logging.debug('; Max time of %f', print_time)
def motor_debug_enable(self, stepper, enable):
toolhead = self.printer.lookup_object('toolhead')
toolhead.dwell(DISABLE_STALL_TIME)
@@ -104,7 +103,6 @@ class PrinterStepperEnable:
el.motor_disable(print_time)
logging.info("%s has been manually disabled", stepper)
toolhead.dwell(DISABLE_STALL_TIME)
- logging.debug('; Max time of %f', print_time)
def _handle_request_restart(self, print_time):
self.motor_off()
def cmd_M18(self, gcmd):
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 22ec6606..d517a3f0 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -675,6 +675,8 @@ class GCodeParser:
def request_restart(self, result):
if self.is_printer_ready:
print_time = self.toolhead.get_last_move_time()
+ if result == 'exit':
+ logging.info("Exiting (print time %.3fs)" % (print_time,))
self.printer.send_event("gcode:request_restart", print_time)
self.toolhead.dwell(0.500)
self.toolhead.wait_moves()