From 89453befd16a4c55a7bb55fb7b19272f8ed571e7 Mon Sep 17 00:00:00 2001 From: Guillaume Seguin Date: Fri, 17 May 2013 16:48:53 +0200 Subject: [PATCH] Fix possible issue where checksum would break layer change detection Should fix #348 --- pronterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pronterface.py b/pronterface.py index 012a990..744447a 100755 --- a/pronterface.py +++ b/pronterface.py @@ -239,7 +239,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): if "G1" in line: if "Z" in line: try: - layer = float(line.split("Z")[1].split()[0]) + layer = float(line.split("Z")[1].split()[0].split("*")[0]) if layer != self.curlayer: self.curlayer = layer self.gviz.hilight = []