diff --git a/src/main/java/de/neemann/digital/core/io/In.java b/src/main/java/de/neemann/digital/core/io/In.java index adee808f2..f891ae77d 100644 --- a/src/main/java/de/neemann/digital/core/io/In.java +++ b/src/main/java/de/neemann/digital/core/io/In.java @@ -60,14 +60,18 @@ public class In implements Element { output = new ObservableValue("out", attributes.get(Keys.BITS)) .setPinDescription(DESCRIPTION) .setPinNumber(pinNumber); - boolean highZ = attributes.get(Keys.IS_HIGH_Z) || value.isHighZ(); - if (highZ) - output.setToHighZ().setBidirectional(); + + if (attributes.get(Keys.IS_HIGH_Z) || value.isHighZ()) + output.setBidirectional(); + + if (value.isHighZ()) + output.setToHighZ(); else output.setValue(value.getValue()); + label = attributes.getLabel(); format = attributes.get(Keys.INT_FORMAT); - showInGraph= attributes.get(Keys.ADD_VALUE_TO_GRAPH); + showInGraph = attributes.get(Keys.ADD_VALUE_TO_GRAPH); } @Override