Added G4 to GCode reader. Fixes #132

master
Daid 2012-06-19 21:57:16 +02:00
parent 9a1a961338
commit 21a71f288e
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -14,7 +14,6 @@ Cura/preferences.ini
cura.sh
pypy
python
drivers
printrun.bat
cura.bat
object-mirror.png

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