diff --git a/src/main/java/com/neophob/sematrix/output/Tpm2.java b/src/main/java/com/neophob/sematrix/output/Tpm2.java index 3b84f010..b4fdc417 100644 --- a/src/main/java/com/neophob/sematrix/output/Tpm2.java +++ b/src/main/java/com/neophob/sematrix/output/Tpm2.java @@ -80,7 +80,6 @@ public Tpm2(ApplicationConfigurationHelper ph, PixelControllerOutput controller) */ public void update() { if (initialized) { - //tpm2.sendFrame(Tpm2Protocol.doProtocol(getTransformedBuffer())); byte[] rgbBuffer = OutputHelper.convertBufferTo24bit(getTransformedBuffer(), colorFormat); if (rgbBuffer.length < 511) { @@ -95,14 +94,14 @@ public void update() { int l = bytesToSend - 510*currentUniverse; if (l>510) l=510; byte[] tmp = new byte[l]; - System.out.println(l+" bytes, "+currentUniverse+"/"+totalUniverse ); + //System.out.println(l+" bytes, "+currentUniverse+"/"+totalUniverse ); System.arraycopy(rgbBuffer, 510*currentUniverse, tmp, 0, l); tpm2.sendFrame(Tpm2NetProtocol.createImagePayload(currentUniverse, totalUniverse, tmp)); //debug out - while (tpm2.getPort().available() > 0) { - System.out.println("<<< "+tpm2.getPort().readString()); + while (tpm2.getPort().available() > 0) { + LOG.log(Level.INFO, "<<< ["+tpm2.getPort().readString()+"]"); } currentUniverse++;