Added G4 to GCode reader. Fixes #132
parent
9a1a961338
commit
21a71f288e
|
@ -14,7 +14,6 @@ Cura/preferences.ini
|
|||
cura.sh
|
||||
pypy
|
||||
python
|
||||
drivers
|
||||
printrun.bat
|
||||
cura.bat
|
||||
object-mirror.png
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue