Ignore comments in gcode files when estimating duration
parent
82aa15becc
commit
1eee27aa77
|
@ -94,7 +94,7 @@ def estimate_duration(g):
|
|||
feedrate = 0
|
||||
X_last_position = 0
|
||||
Y_last_position = 0
|
||||
for i in g:
|
||||
for i.split(";")[0] in g:
|
||||
if "G1" in i and ("X" in i or "Y" in i or "F" in i or "E" in i):
|
||||
parts = i.split(" ")
|
||||
X = get_coordinate_value("X", parts[1:])
|
||||
|
|
Loading…
Reference in New Issue