diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-07-25 22:31:43 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-07-25 22:46:11 -0400 |
commit | e9c03f2e4a1807de2730de370ea374c4edeea438 (patch) | |
tree | 976cd0ac9475cbccd388201a2b9701f28d16168d | |
parent | dc37a07a8eaa54f721f14822143226bcdc530fcf (diff) | |
download | kutter-e9c03f2e4a1807de2730de370ea374c4edeea438.tar.gz kutter-e9c03f2e4a1807de2730de370ea374c4edeea438.tar.xz kutter-e9c03f2e4a1807de2730de370ea374c4edeea438.zip |
gcode: Error on G20 (set units to inches) command
Respond with an error to a G20 command (instead of effectively
ignoring the command).
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/gcode.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index 2958c76c..fd377c1c 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -26,7 +26,6 @@ class GCodeParser: self.is_shutdown = False self.need_ack = False self.toolhead = self.heater_nozzle = self.heater_bed = self.fan = None - self.movemult = 1.0 self.speed = 1.0 self.absolutecoord = self.absoluteextrude = True self.base_position = [0.0, 0.0, 0.0, 0.0] @@ -222,10 +221,10 @@ class GCodeParser: self.toolhead.dwell(delay) def cmd_G20(self, params): # Set units to inches - self.movemult = 25.4 + self.respond('Error: Machine does not support G20 (inches) command') def cmd_G21(self, params): # Set units to millimeters - self.movemult = 1.0 + pass def cmd_G28(self, params): # Move to origin axis = [] |