From ab9002c579eeae8c1308a346ccad1b2e48bdf8cc Mon Sep 17 00:00:00 2001 From: Mikko Sivulainen Date: Tue, 9 Oct 2012 18:59:10 +0300 Subject: [PATCH] fixed measurement calculation for X and Y axis Conflicts: pronsole.py --- pronsole.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pronsole.py b/pronsole.py index 29e0a6d..a50e27d 100755 --- a/pronsole.py +++ b/pronsole.py @@ -62,15 +62,15 @@ def measurements(g): if "X" in i and ("G1" in i or "G0" in i): try: Xcur = float(i.split("X")[1].split(" ")[0]) - if Xcur5.0: Xmin = Xcur - if Xcur>Xmax: Xmax = Xcur + if XcurXmax: Xmax=Xcur except: pass if "Y" in i and ("G1" in i or "G0" in i): try: Ycur = float(i.split("Y")[1].split(" ")[0]) - if Ycur5.0: Ymin = Ycur - if Ycur>Ymax: Ymax = Ycur + if YcurYmax: Ymax=Ycur except: pass