aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-08-26 13:20:16 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-08-26 18:27:21 -0400
commit0c2919b53403ff9bce7773550b7625a021cd663a (patch)
tree683b1383bceaf62a6559f327d5b1991a4a023447 /klippy/gcode.py
parentd8c75fc608cdc510d432a2b2b84ac82cfce5faa5 (diff)
downloadkutter-0c2919b53403ff9bce7773550b7625a021cd663a.tar.gz
kutter-0c2919b53403ff9bce7773550b7625a021cd663a.tar.xz
kutter-0c2919b53403ff9bce7773550b7625a021cd663a.zip
klippy: Move restart logic into Printer() class
Move the restart logic out of main() and into Printer.run(). This simplifies the code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index a890b94f..b652b919 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -114,7 +114,7 @@ class GCodeParser:
self.toolhead.force_shutdown()
self.respond_error('Internal error on command:"%s"' % (cmd,))
if self.is_fileinput:
- self.printer.request_exit('exit_eof')
+ self.printer.request_exit()
break
self.ack()
self.need_ack = prev_need_ack
@@ -141,7 +141,7 @@ class GCodeParser:
self.motor_heater_off()
if self.toolhead is not None:
self.toolhead.wait_moves()
- self.printer.request_exit('exit_eof')
+ self.printer.request_exit()
self.is_processing_data = False
if self.fd_handle is None:
self.fd_handle = self.reactor.register_fd(self.fd, self.process_data)