From: Youness Alaoui Date: Tue, 10 Feb 2015 20:41:25 +0000 (-0500) Subject: Add support for G29 and M203/M204/M400 gcodes in interpreter X-Git-Tag: lulzbot-15.02.1-1.01~70 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0419c071718a6ed0a8a99b73631de903cde66698;p=cura.git Add support for G29 and M203/M204/M400 gcodes in interpreter This prevents seeing "Unknown M code" error in stdout when switching to layers view. Fixes issue #85 --- diff --git a/Cura/util/gcodeInterpreter.py b/Cura/util/gcodeInterpreter.py index 95b42d75..4e51ef33 100644 --- a/Cura/util/gcodeInterpreter.py +++ b/Cura/util/gcodeInterpreter.py @@ -210,6 +210,8 @@ class gcode(object): pos[1] = center[1] if z is not None: pos[2] = center[2] + elif G == 29: #Probe Z + pos[2] = 0.0 elif G == 90: #Absolute position posAbs = True elif G == 91: #Relative position @@ -276,6 +278,12 @@ class gcode(object): pass elif M == 190: #Set bed temperature & wait pass + elif M == 203: #Set maximum feedrate + pass + elif M == 204: #Set default acceleration + pass + elif M == 400: #Wait for current moves to finish + pass elif M == 221: #Extrude amount multiplier s = getCodeFloat(line, 'S') if s is not None: