diff --git a/gui/pygauge.py b/gui/pygauge.py index 68f71f76f..74fdb1d35 100644 --- a/gui/pygauge.py +++ b/gui/pygauge.py @@ -298,12 +298,21 @@ class PyGauge(wx.PyWindow): c1 = map(lambda t: sum(t), zip(c1, (0,pv/3,-pv,0))) c2 = map(lambda t: sum(t), zip(c2, (0,pv/3,-pv,0))) else: - if pv <= 105: + if pv <=102.5: xv = pv -100 c1 = map(lambda t: sum(t), zip(c1, (0,100/3,-100,0))) + c1 = map(lambda t: sum(t), zip(c1, (xv*10,xv*10,0,0))) + + c2 = map(lambda t: sum(t), zip(c2, (0,100/3,-100,0))) + c2 = map(lambda t: sum(t), zip(c2, (xv*10,xv*10,0,0))) + elif pv <= 105: + xv = pv -102.5 + c1 = map(lambda t: sum(t), zip(c1, (0,100/3,-100,0))) + c1 = map(lambda t: sum(t), zip(c1, (2.5*10,2.5*10,0,0))) c1 = map(lambda t: sum(t), zip(c1, (xv*10,-xv*20,0,0))) c2 = map(lambda t: sum(t), zip(c2, (0,100/3,-100,0))) + c2 = map(lambda t: sum(t), zip(c2, (2.5*10,2.5*10,0,0))) c2 = map(lambda t: sum(t), zip(c2, (xv*10,-xv*20,0,0))) else: