From 31eb76ceca1add83b88e06555d8d24e6d42b04a0 Mon Sep 17 00:00:00 2001 From: hneemann Date: Fri, 30 Mar 2018 18:15:50 +0200 Subject: [PATCH] fixed high-z bug in new LED --- .../java/de/neemann/digital/draw/shapes/RealLEDShape.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/neemann/digital/draw/shapes/RealLEDShape.java b/src/main/java/de/neemann/digital/draw/shapes/RealLEDShape.java index 311b771ef..e699aa860 100644 --- a/src/main/java/de/neemann/digital/draw/shapes/RealLEDShape.java +++ b/src/main/java/de/neemann/digital/draw/shapes/RealLEDShape.java @@ -110,7 +110,10 @@ public class RealLEDShape implements Shape { graphic.drawLine(new Vector(0, SIZE * 4 - SIZE2 - HEIGHT), new Vector(0, 0), Style.NORMAL); graphic.drawCircle(center.sub(rad), center.add(rad), Style.FILLED); - if (a.getBool() && !c.getBool()) { + boolean aActive = a.getBool() && !a.isHighZ(); + boolean cActive = !c.getBool() && !c.isHighZ(); + + if (aActive && cActive) { Vector radL = new Vector(RAD - 2, RAD - 2); graphic.drawCircle(center.sub(radL), center.add(radL), style); }