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 Prosper Van

Revision:
22:0e8e22f161ff
Parent:
21:117e01fc0373
--- a/com.cpp	Thu Oct 23 04:46:10 2014 +0000
+++ b/com.cpp	Sun Nov 02 19:18:11 2014 +0000
@@ -38,14 +38,12 @@
 
 void com::callback()
 {
-    __disable_irq();
     while(xbee.readable())
     {
         char data = xbee.getc();
-        xbee.putc(data);
+//        xbee.putc(data);
         rxBuffer.add(data);
     }
-    __enable_irq();
 }
 
 bool com::isData()