Fix tacton player
authorThomas Pietrzak <thomas.pietrzak@gmail.com>
Fri, 30 Mar 2012 15:47:26 +0000 (15:47 +0000)
committerThomas Pietrzak <thomas.pietrzak@gmail.com>
Fri, 30 Mar 2012 15:47:26 +0000 (15:47 +0000)
git-svn-id: svn+ssh://thomaspietrzak.com/var/svn/rep@73 47cf9a05-e0a8-4ed5-9e9b-101a649bc004

Arduino/wristbandTactons/wristbandTactons.ino

index 650b53ec5e154aa15bf96a5d12c63d6319c0b3c7..658eeea178b7e143611e291368b3ddf797bae2c7 100644 (file)
@@ -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();
 }
-
+\r