Ignore comments in gcode files when estimating duration

master
Kliment Yanev 2011-11-27 17:30:35 +01:00
parent 82aa15becc
commit 1eee27aa77
1 changed files with 1 additions and 1 deletions

View File

@ -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:])