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:
44:ece6330e9b57
Parent:
41:9ef4c4d77711
Child:
53:a1563574a980
--- a/xDotBridge/src/CommProtocolPeerBrute.cpp	Tue Jan 31 21:02:56 2017 +0000
+++ b/xDotBridge/src/CommProtocolPeerBrute.cpp	Wed Feb 01 15:20:45 2017 -0700
@@ -16,17 +16,11 @@
 const unsigned int nTimesToTx = ceil(RX_SLEEP_TIME / ((float)TX_TIME));
 //const uint8_t maxPayloadSize = 10; // Number of bytes (used for toa calcultion)
 
-CommProtocolPeerBrute::CommProtocolPeerBrute(bool isTx)
+CommProtocolPeerBrute::CommProtocolPeerBrute()
 {
     logInfo("RX_SLEEP_TIME %f, timeOnAir %lu, nTimesToTx %lu", RX_SLEEP_TIME, TX_TIME, nTimesToTx);
 
-    mIsTx = isTx;
-    if (mIsTx) {
-        mWakeMode = mDot::INTERRUPT;
-    }
-    else {
-        mWakeMode = mDot::RTC_ALARM_OR_INTERRUPT;
-    }
+    mIsTx = true; // default to TX
     dot = mDot::getInstance();
 }
 
@@ -86,7 +80,10 @@
     update_peer_to_peer_config(pair_network_address, pair_network_session_key, pair_data_session_key, tx_frequency, tx_datarate, tx_power);
     return cmdSuccess;
 }
-
+void CommProtocolPeerBrute::setTx(bool isTx)
+{
+    mIsTx = isTx;
+}
 bool CommProtocolPeerBrute::isTx()
 {
     return mIsTx;