From: Mark Slee Date: Thu, 8 Aug 2013 06:11:47 +0000 (-0700) Subject: Fix bug in how sending data to pandaboards X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f584b5ebb67c480024af86674c53fe2d8d73aad2;p=SugarCubes.git Fix bug in how sending data to pandaboards --- diff --git a/_PandaDriver.pde b/_PandaDriver.pde index 60ab343..01b7169 100644 --- a/_PandaDriver.pde +++ b/_PandaDriver.pde @@ -82,21 +82,21 @@ public class PandaDriver { // Flush once packet is full buffer size if (len >= packet.length) { - sendPacket(packetNum++, len); + sendPacket(packetNum++); len = 0; } } // Flush any remaining data if (len > 0) { - sendPacket(packetNum++, len); + sendPacket(packetNum++); } } - private void sendPacket(int packetNum, int len) { + private void sendPacket(int packetNum) { message.clearArguments(); message.add(packetNum); - message.add(len); + message.add(packet.length); message.add(packet); try { OscP5.flush(message, address);