Commit 02f14d50 authored by Kliment Yanev's avatar Kliment Yanev

Fix comment stripping in duration estimation

parent db669df5
...@@ -94,7 +94,8 @@ def estimate_duration(g): ...@@ -94,7 +94,8 @@ def estimate_duration(g):
feedrate = 0 feedrate = 0
X_last_position = 0 X_last_position = 0
Y_last_position = 0 Y_last_position = 0
for i.split(";")[0] in g: for i in g:
i=i.split(";")[0]
if "G1" in i and ("X" in i or "Y" in i or "F" in i or "E" in i): if "G1" in i and ("X" in i or "Y" in i or "F" in i or "E" in i):
parts = i.split(" ") parts = i.split(" ")
X = get_coordinate_value("X", parts[1:]) X = get_coordinate_value("X", parts[1:])
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment