aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-13 14:53:41 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-13 14:53:41 -0400
commit8920479f857712d92a6d083f89b91d4830d2436f (patch)
tree1d175d00d8d368a6adc94a7e2506bd6669f9a3b0 /klippy/gcode.py
parent4c25eae9b406d28d1c7e300aab7f8b4a4168c69b (diff)
downloadkutter-8920479f857712d92a6d083f89b91d4830d2436f.tar.gz
kutter-8920479f857712d92a6d083f89b91d4830d2436f.tar.xz
kutter-8920479f857712d92a6d083f89b91d4830d2436f.zip
klippy: Remove CLEAR_SHUTDOWN command
Advice users to issue a FIRMWARE_RESTART command on a printer shutdown event, and remove support for CLEAR_SHUTDOWN. A full mcu reset is preferable and it simplifies the interface. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 59d401f2..2ef92045 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -47,7 +47,7 @@ class GCodeParser:
handlers = ['G1', 'G4', 'G20', 'G21', 'G28', 'G90', 'G91', 'G92',
'M18', 'M82', 'M83', 'M105', 'M110', 'M112', 'M114', 'M115',
'M206', 'M400',
- 'HELP', 'QUERY_ENDSTOPS', 'CLEAR_SHUTDOWN',
+ 'HELP', 'QUERY_ENDSTOPS',
'RESTART', 'FIRMWARE_RESTART', 'STATUS']
if self.heater_nozzle is not None:
handlers.extend(['M104', 'M109', 'PID_TUNE'])
@@ -394,14 +394,6 @@ class GCodeParser:
temp = self.get_float('S', params)
heater.start_auto_tune(temp)
self.bg_temp(heater)
- cmd_CLEAR_SHUTDOWN_when_not_ready = True
- cmd_CLEAR_SHUTDOWN_help = "Clear a firmware shutdown and restart"
- def cmd_CLEAR_SHUTDOWN(self, params):
- if self.toolhead is None:
- self.cmd_default(params)
- return
- self.printer.mcu.clear_shutdown()
- self.printer.request_exit('restart')
def prep_restart(self):
if self.is_printer_ready:
self.respond_info("Preparing to restart...")