From: Thomas Pietrzak Date: Fri, 30 Mar 2012 15:47:26 +0000 (+0000) Subject: Fix tacton player X-Git-Url: https://git.thomaspietrzak.com/?a=commitdiff_plain;h=e162e9612b18c1d5997c50aa9a05ff18ac8a94eb;p=tactonlibrary.git Fix tacton player git-svn-id: svn+ssh://thomaspietrzak.com/var/svn/rep@73 47cf9a05-e0a8-4ed5-9e9b-101a649bc004 --- diff --git a/Arduino/wristbandTactons/wristbandTactons.ino b/Arduino/wristbandTactons/wristbandTactons.ino index 650b53e..658eeea 100644 --- a/Arduino/wristbandTactons/wristbandTactons.ino +++ b/Arduino/wristbandTactons/wristbandTactons.ino @@ -34,7 +34,7 @@ void loop() { if (command == 0) command = Serial.read(); - switch(command) + switch(command) { //set the timestamp to 0, and watch for scheduled tactons case 'S': @@ -84,6 +84,10 @@ void loop() } if (posbuf >= nbf*6) { +/* Serial.print("Received: *"); + for (int i = 0 ; i < 6 ; i++) + Serial.print(buffer[i], HEX); + Serial.println("*");*/ manager.play(nbf, buffer); posbuf = 0; command = 0; @@ -131,4 +135,4 @@ void loop() if (active) manager.checkPlay(); } - +