Fork to see if I can get working

Dependencies:   BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated

Fork of xDotBridge_update_test20180823 by Matt Briggs

Revision:
81:1eb0f16b2ab9
Parent:
78:43f074baac34
Child:
89:edfe5d376e55
--- a/xDotBridge/src/main.cpp	Wed Nov 15 00:25:42 2017 +0000
+++ b/xDotBridge/src/main.cpp	Thu Nov 16 20:59:24 2017 +0000
@@ -1,3 +1,4 @@
+#include "mbed.h"
 #include <math.h>
 #include "config.h"
 #include "xdot_flash.h"
@@ -7,6 +8,7 @@
 #include "WinbondSPIFlash.h"
 #include "UserInterface.h"
 //#include <xdot_low_power.h>
+#include "ChannelPlans.h"
 #include "mDot.h"
 #include "MyLog.h"
 #include "SimpleRxSeqLog.h"
@@ -116,7 +118,13 @@
     mts::MTSLog::setLogLevel(mts::MTSLog::TRACE_LEVEL);
     MyLog::setLogLevel(MyLog::DEBUG_LEVEL);
 
-    dot = mDot::getInstance();
+	// use US915 plan
+    lora::ChannelPlan* plan = new lora::ChannelPlan_US915();
+    // use EU868 plan
+    // lora::ChannelPlan* plan = new lora::ChannelPlan_EU868();
+    assert(plan);
+    
+    dot = mDot::getInstance(plan);
 
     // make sure library logging is turned on
     dot->setLogLevel(mts::MTSLog::WARNING_LEVEL);