diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-04-24 14:52:00 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-04-24 14:53:41 -0400 |
commit | ed3e6b42c74a1f00bd3bf3d636d9abf47bb73598 (patch) | |
tree | 7c68ed49413df347fe0eef6d5a210a6034810767 | |
parent | 9730be8e17b4b21e34f8ed2733c53e8b5924bebb (diff) | |
download | kutter-ed3e6b42c74a1f00bd3bf3d636d9abf47bb73598.tar.gz kutter-ed3e6b42c74a1f00bd3bf3d636d9abf47bb73598.tar.xz kutter-ed3e6b42c74a1f00bd3bf3d636d9abf47bb73598.zip |
gcode: Raise a gcode.error() from G20 command
It's important to raise an error (instead of calling respond_error() )
so that a G20 will stop a virtual_sdcard print.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/gcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index 463cb521..9b14470e 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -506,7 +506,7 @@ class GCodeParser: # G-Code coordinate manipulation def cmd_G20(self, params): # Set units to inches - self.respond_error('Machine does not support G20 (inches) command') + raise self.error('Machine does not support G20 (inches) command') def cmd_M82(self, params): # Use absolute distances for extrusion self.absolute_extrude = True |