Michael Ling / ExoController

Dependents:   Data-Management-Honka

Revision:
17:80affee96096
Parent:
16:b6b2c7b0f1c9
Child:
18:34ccf02fdbe7
diff -r b6b2c7b0f1c9 -r 80affee96096 BluetoothComm.cpp
--- a/BluetoothComm.cpp	Mon Apr 13 17:40:41 2015 +0000
+++ b/BluetoothComm.cpp	Wed Apr 15 01:50:50 2015 +0000
@@ -249,7 +249,7 @@
     //Each pair of characters is converted to a short, with orders reversed. 
     //This is so that casting the short* back to char* restores the original message.
     if (dataOut != NULL) {
-        int ind = 0;
+        int ind = 2;
         int j;
         for (j = 0; j < len-1; j+=2) {
             dataOut[ind] = (message[j+1]<<8)|message[j];