From 0991591ed1782372077ee2ef17fec4138da905a1 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 21 Oct 2013 23:29:44 +0200 Subject: [PATCH] remove System.out.println --- src/main/java/com/neophob/sematrix/output/Tpm2.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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++;