diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-05-02 07:34:59 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-05-02 07:35:23 -0400 |
commit | 3aacc4d6a2f9786353cb719cd8d5df8a134806fe (patch) | |
tree | 985be84ca9b4495e7e66276acd58de0ce437bf11 /klippy/gcode.py | |
parent | b6ebf5cb09a5ef13aeb65ad294d967dba2266749 (diff) | |
download | kutter-3aacc4d6a2f9786353cb719cd8d5df8a134806fe.tar.gz kutter-3aacc4d6a2f9786353cb719cd8d5df8a134806fe.tar.xz kutter-3aacc4d6a2f9786353cb719cd8d5df8a134806fe.zip |
gcode: Only call position_with_transform() when printer is ready
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index 6cac494e..9077a667 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -189,7 +189,8 @@ class GCodeParser: self.extrude_factor = 1. self.base_position[3] = self.last_position[3] def reset_last_position(self): - self.last_position = self.position_with_transform() + if self.is_printer_ready: + self.last_position = self.position_with_transform() def _dump_debug(self): out = [] out.append("Dumping gcode input %d blocks" % ( |