Prosper Van / xbeeCom

Fork of com by Prosper Van

Files at this revision

API Documentation at this revision

Comitter:
oprospero
Date:
Thu Apr 24 04:14:22 2014 +0000
Parent:
8:951c71c71b2d
Child:
10:ec36e1b59a39
Commit message:
Add protection against early ending packet

Changed in this revision

com.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/com.cpp	Wed Apr 23 06:21:01 2014 +0000
+++ b/com.cpp	Thu Apr 24 04:14:22 2014 +0000
@@ -148,7 +148,7 @@
 //        xbeeTx.putc( bLength );
 //        xbeeTx.putc( bLength );
 //        xbeeTx.putc( 255 );
-        if( data == 255 )
+        if( data == 255 && bLength > 5)
             packetBuilder();
     }
     __enable_irq();