mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 15:25:52 +08:00
Added G4 to GCode reader. Fixes #132
This commit is contained in:
parent
9a1a961338
commit
21a71f288e
1
.gitignore
vendored
1
.gitignore
vendored
@ -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…
x
Reference in New Issue
Block a user