Added G4 to GCode reader. Fixes #132
parent
9a1a961338
commit
21a71f288e
|
@ -14,7 +14,6 @@ Cura/preferences.ini
|
||||||
cura.sh
|
cura.sh
|
||||||
pypy
|
pypy
|
||||||
python
|
python
|
||||||
drivers
|
|
||||||
printrun.bat
|
printrun.bat
|
||||||
cura.bat
|
cura.bat
|
||||||
object-mirror.png
|
object-mirror.png
|
||||||
|
|
|
@ -158,6 +158,13 @@ class gcode(object):
|
||||||
newPos = pos.copy()
|
newPos = pos.copy()
|
||||||
newPos.e = totalExtrusion
|
newPos.e = totalExtrusion
|
||||||
currentPath.list.append(newPos)
|
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
|
elif G == 20: #Units are inches
|
||||||
scale = 25.4
|
scale = 25.4
|
||||||
elif G == 21: #Units are mm
|
elif G == 21: #Units are mm
|
||||||
|
|
Loading…
Reference in New Issue