From 1eee27aa778395febed622d42f6aaf8d480da67e Mon Sep 17 00:00:00 2001 From: Kliment Yanev Date: Sun, 27 Nov 2011 17:30:35 +0100 Subject: [PATCH] Ignore comments in gcode files when estimating duration --- pronsole.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pronsole.py b/pronsole.py index fd3be45..c4e7a25 100755 --- a/pronsole.py +++ b/pronsole.py @@ -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:])