QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Revision:
12:e42985e3ea64
Child:
14:6be57da62283
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/adapt/xbee.cpp	Sat Apr 05 22:27:18 2014 +0000
@@ -0,0 +1,12 @@
+#include "xbee.h"
+
+Serial* XBEE::xbee=NULL;
+
+Serial& XBEE::getSerial(){
+    if(xbee==NULL){
+        // Init Serial USB
+        xbee=new Serial(XBEEPINTX,XBEEPINRX);
+        xbee->baud(XBEEBAUD);
+    }
+    return *xbee;
+}
\ No newline at end of file