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:
54:c04d7b6fa075
Parent:
53:a1563574a980
Child:
55:79ab0bbc5008
--- a/xDotBridge/src/main.cpp	Wed Feb 22 10:45:56 2017 -0700
+++ b/xDotBridge/src/main.cpp	Wed Feb 22 15:39:40 2017 -0700
@@ -55,7 +55,7 @@
     dot->setLogLevel(mts::MTSLog::INFO_LEVEL);
 
     // attach the custom events handler
-//    dot->setEvents(&events);  // Little bonus event debug information
+    dot->setEvents(&events);  // Little bonus event debug information
 
     // Finish radio init
     protocol->init();
@@ -86,7 +86,7 @@
 //    logInfo("Programmable Voltage Detector set for level: %d", pvdConfig.PVDLevel);
 //    // HAL_PWR_PVDCallback need to define this I think this will override the current implementation
 
-    dot->setWakePin(GPIO3);
+    dot->setWakePin(UART1_RX);
 
 
     // display configuration
@@ -183,7 +183,7 @@
                 #if LED_FEEDBACK
                 bbio->ledOn();
                 #endif
-                wait(0.5); // TODO this should be configurable
+                wait(5.0); // TODO this should be configurable
 		    }
             bbio->ledOff();
             bbio->relayNormal();
@@ -191,6 +191,7 @@
 //            sleep_save_io();
 //            sleep_configure_io();
             // TODO maybe add if statement here to prevent double hits by sleeping for a longer time
+            protocol->sampleDLC();
             dot->sleep(2, mDot::RTC_ALARM_OR_INTERRUPT, false);  // Go to sleep until wake button
 //            sleep_restore_io();
 		}