Added G4 to GCode reader. Fixes #132

This commit is contained in:
Daid committed 2012-06-19 21:57:16 +02:00
1 parent 9a1a961338
commit 21a71f288e
2 files changed
+7 -1

No files matched your search

-1
View File
@@ -14,7 +14,6 @@ Cura/preferences.ini
cura.sh
pypy
python
drivers
printrun.bat
cura.bat
object-mirror.png
+7
View File
@@ -158,6 +158,13 @@ class gcode(object):
newPos = pos.copy()
newPos.e = totalExtrusion
currentPath.list.append(newPos)
elif G == 4: #Delay
S = self.getCodeFloat(line, 'S')
if S is not None:
totalMoveTimeMinute += S / 60
P = self.getCodeFloat(line, 'P')
if P is not None:
totalMoveTimeMinute += P / 60 / 1000
elif G == 20: #Units are inches
scale = 25.4
elif G == 21: #Units are mm