diff --git a/src/octoprint/plugins/gcodeviewer/static/js/viewer/worker.js b/src/octoprint/plugins/gcodeviewer/static/js/viewer/worker.js index b75b7f15e..9660fb0ea 100644 --- a/src/octoprint/plugins/gcodeviewer/static/js/viewer/worker.js +++ b/src/octoprint/plugins/gcodeviewer/static/js/viewer/worker.js @@ -380,7 +380,7 @@ var doParse = function () { var log = false; - if (/^(?:G0|G1|G2|G3)(\.\d+)?\s/i.test(line)) { + if (/^(?:G0|G1|G2|G3|G00|G01|G02|G03)(\.\d+)?\s/i.test(line)) { args = line.split(/\s/); for (j = 0; j < args.length; j++) { diff --git a/src/octoprint/util/gcodeInterpreter.py b/src/octoprint/util/gcodeInterpreter.py index af30cb260..e573a5c0a 100644 --- a/src/octoprint/util/gcodeInterpreter.py +++ b/src/octoprint/util/gcodeInterpreter.py @@ -422,7 +422,7 @@ class gcode: tool = int(values["tool"]) # G codes - if gcode in ("G0", "G1"): # Move + if gcode in ("G0", "G1", "G00", "G01"): # Move x = getCodeFloat(line, "X") y = getCodeFloat(line, "Y") z = getCodeFloat(line, "Z") @@ -497,7 +497,7 @@ class gcode: if e: self._track_layer(pos) - if gcode in ("G2", "G3"): # Arc Move + if gcode in ("G2", "G3", "G02", "G03"): # Arc Move x = getCodeFloat(line, "X") y = getCodeFloat(line, "Y") z = getCodeFloat(line, "Z")