From 5cda96926383c11e55d3d11a7f1def826169c74f Mon Sep 17 00:00:00 2001 From: nikor Date: Thu, 3 Jan 2019 14:48:57 +0100 Subject: [PATCH] Allow leading zero in G0 and G1 --- gcodeParser.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gcodeParser.py b/gcodeParser.py index 45b6133..dd5ff7a 100755 --- a/gcodeParser.py +++ b/gcodeParser.py @@ -65,6 +65,15 @@ def parseArgs(self, args): dic[letter] = coord return dic + def parse_G00(self, args): + # G00: Rapid move + # same as a controlled move for us (& reprap FW) + self.parse_G1(args, "G0") + + def parse_G01(self, args, type="G1"): + # G01: Controlled move + self.model.do_G1(self.parseArgs(args), type) + def parse_G0(self, args): # G0: Rapid move # same as a controlled move for us (& reprap FW)