Stephen Davis / Mbed 2 deprecated BT_Hub

Dependencies:   mbed-rtos mbed

Revision:
1:d6b18299a715
Parent:
0:226550611f0d
diff -r 226550611f0d -r d6b18299a715 packetformatter.cpp
--- a/packetformatter.cpp	Mon Dec 12 23:06:58 2016 +0000
+++ b/packetformatter.cpp	Mon Dec 12 23:19:30 2016 +0000
@@ -2,8 +2,6 @@
 #include <string.h>
 #include "packetformatter.h"
 #include "charactercode.h"
-//#include "command.h"
-
 //#define DEBUG
 
 static unsigned int checkSum;
@@ -30,7 +28,7 @@
     memset( _packet , '\0' , sizeof( Packet ) );
 
     _packet->deviceID = (int)_buffer[1] ;
-  _packet->sourceID = (int)_buffer[2] ;
+    _packet->sourceID = (int)_buffer[2] ;
     _packet->command = _buffer[3];
     _packet->packetLength = _buffer[4];
     _packet->packetLength = _packet->packetLength << 8;