rikbeuncode

Dependencies:   mbed-rtos mbed Xbus

Fork of MTi-1_example by Xsens

Files at this revision

API Documentation at this revision

Comitter:
Alex Young
Date:
Wed May 13 17:37:43 2015 +0200
Parent:
8:77cd45916596
Child:
10:18a6661b7e59
Commit message:
Remember to set the message length even if it is zero

Changed in this revision

xbus/xbusparser.c Show annotated file Show diff for this revision Revisions of this file
--- a/xbus/xbusparser.c	Wed May 13 15:32:21 2015 +0200
+++ b/xbus/xbusparser.c	Wed May 13 17:37:43 2015 +0200
@@ -105,6 +105,7 @@
 			parser->checksum += byte;
 			if (byte == XBUS_NO_PAYLOAD)
 			{
+				parser->currentMessageLength = byte;
 				parser->state = XBPS_Checksum;
 			}
 			else if (byte < XBUS_EXTENDED_LENGTH)