For Hepta-Sat Lite

Revision:
13:59679840fb53
Parent:
12:94abebd3d020
diff -r 94abebd3d020 -r 59679840fb53 HeptaXbee.cpp
--- a/HeptaXbee.cpp	Wed Aug 21 11:18:56 2019 +0000
+++ b/HeptaXbee.cpp	Tue Aug 17 10:50:19 2021 +0000
@@ -2,10 +2,11 @@
 #include "mbed.h"
 #include  <stdarg.h>
 
-HeptaXbee::HeptaXbee(PinName tx, PinName rx) : xbee(tx,rx)
+HeptaXbee::HeptaXbee(PinName tx, PinName rx, int brate) : xbee(tx,rx),comrate(brate)
 {
     rcmd = 0;
     cmdflag = 0;
+    xbee.baud(comrate);
 }
 void HeptaXbee::baud(int rate)
 {