Commit 89453bef authored by Guillaume Seguin's avatar Guillaume Seguin

Fix possible issue where checksum would break layer change detection

Should fix #348
parent a9c3e8b4
......@@ -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 = []
......
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