Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Commit

Permalink
remove System.out.println
Browse files Browse the repository at this point in the history
  • Loading branch information
neophob committed Oct 21, 2013
1 parent 6c82e91 commit 0991591
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/com/neophob/sematrix/output/Tpm2.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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++;
Expand Down

0 comments on commit 0991591

Please sign in to comment.