Commits

Sebastian Bub committed 7d8cba6

bugfix: reading an output port has been fixed

Comments (0)

Files changed (1)

src/main/java/de/derbub/rpigpio/SingleContext.java

                 if (("0".equals(uncheckedValue) || "1".equals(uncheckedValue))) {
                     nameCheckedValuesMap.put(name, uncheckedValue);
                 }
-                if (Direction.CONDITIONAL_INPUT.equals(uncheckedValue)) {
+                if (Direction.CONDITIONAL_INPUT.equals(uncheckedValue) || Direction.IN.equals(Direction.getDirectionByString(uncheckedValue))) {
                     nameCheckedValuesMap.put(name, Direction.IN.getValue());
                 }
             }