From 5b8126ae176cd34578895917cae3b831cf82feda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sun, 24 Nov 2013 13:12:02 +0100 Subject: [PATCH] Use G28 for homing (G1 was a copy-paste-error) Fixes #314 --- src/octoprint/server/ajax/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/ajax/control.py b/src/octoprint/server/ajax/control.py index f874f367..a60e47e9 100644 --- a/src/octoprint/server/ajax/control.py +++ b/src/octoprint/server/ajax/control.py @@ -223,7 +223,7 @@ def controlPrinterPrinthead(): # execute the home command # TODO make this a generic method call (printer.home(axis, ...)) to get rid of gcode here - printer.commands(["G91", "G1 %s" % " ".join(map(lambda x: "%s0" % x.upper(), validated_values)), "G90"]) + printer.commands(["G91", "G28 %s" % " ".join(map(lambda x: "%s0" % x.upper(), validated_values)), "G90"]) return jsonify(SUCCESS)