xbee communication for UWB quadcopter project Originally by Greg Abdo Forking to reduce impact of interrupt by moving packetbuilder out of the interrupt and letting be handled in the main loop
Fork of com by
Diff: com.cpp
- Revision:
- 9:1190db2717a8
- Parent:
- 7:662171c0e984
- Child:
- 10:ec36e1b59a39
--- 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();