Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Data-Management-Honka
Diff: BluetoothComm.cpp
- Revision:
- 17:80affee96096
- Parent:
- 16:b6b2c7b0f1c9
- Child:
- 18:34ccf02fdbe7
--- 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];