From e162e9612b18c1d5997c50aa9a05ff18ac8a94eb Mon Sep 17 00:00:00 2001 From: Thomas Pietrzak Date: Fri, 30 Mar 2012 15:47:26 +0000 Subject: [PATCH] Fix tacton player git-svn-id: svn+ssh://thomaspietrzak.com/var/svn/rep@73 47cf9a05-e0a8-4ed5-9e9b-101a649bc004 --- Arduino/wristbandTactons/wristbandTactons.ino | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(); } - + -- 2.30.2