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.
Diff: packetformatter.cpp
- 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;