From 8c7d9726d73af7df62908204a0929b0f7ae58732 Mon Sep 17 00:00:00 2001 From: Jordan Ruthe Date: Fri, 5 Mar 2021 00:20:26 -0500 Subject: [PATCH] move: Keep abs/rel coordinates. Closes #106 --- panels/move.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panels/move.py b/panels/move.py index c1e989e6..925525b6 100644 --- a/panels/move.py +++ b/panels/move.py @@ -129,5 +129,6 @@ class MovePanel(ScreenPanel): print("%s\n%s %s%s" % (KlippyGcodes.MOVE_RELATIVE, KlippyGcodes.MOVE, axis, dist)) self._screen._ws.klippy.gcode_script( - "%s\n%s %s%s" % (KlippyGcodes.MOVE_RELATIVE, KlippyGcodes.MOVE, axis, dist) + "%s\n%s %s%s%s" % (KlippyGcodes.MOVE_RELATIVE, KlippyGcodes.MOVE, axis, dist, + "\nG90" if self._printer.get_stat("gcode_move", "absolute_coordinates") == True else "") )