Commits

Sebastian Bub  committed 53e7840

bugfix on currentOutputPortState

  • Participants
  • Parent commits 3ef15e4

Comments (0)

Files changed (1)

File src/main/java/de/derbub/rpigpio/gpio/GpioSysFsInterface.java

                 try {
                     if (null != aGpioFileWriter) {
                         aGpioFileWriter.close();
-                        currentOutputPortState.put(perfileConfiguredGpioArray[i], perfValueArray[i]);
+                        currentOutputPortState.put(perfileConfiguredGpioArray[i], perfValueArray[i].trim());
                     }
                 } catch (Exception e) {
                     log.error("Got a " + e.getClass().getName() + " with message: " + e.getMessage() + " with file " + aGpioFile