Fork to see if I can get working

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

Fork of xDotBridge_update_test20180823 by Matt Briggs

Files at this revision

API Documentation at this revision

Comitter:
Matt Briggs
Date:
Tue Mar 21 14:29:32 2017 -0600
Parent:
67:2115a2f1b945
Child:
69:eb391644b346
Commit message:
Changed how long between messages in continous alert condition.

Changed in this revision

xDotBridge/config.h Show annotated file Show diff for this revision Revisions of this file
xDotBridge/src/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/xDotBridge/config.h	Tue Mar 21 13:04:31 2017 -0600
+++ b/xDotBridge/config.h	Tue Mar 21 14:29:32 2017 -0600
@@ -5,10 +5,10 @@
 #ifndef CONFIG_H_
 #define CONFIG_H_
 
-#define __TEST__ 1 // Comment out for main application
+//#define __TEST__ 1 // Comment out for main application
 
 // Manual test.  Comment out for main application.  Or uncomment for individual test.
-#define __TEST_BBIO__
+//#define __TEST_BBIO__
 //#define __TEST_LRR__
 //#define __TEST_PVD__
 //#define __TEST_XDOT_DEV_COMM__
--- a/xDotBridge/src/main.cpp	Tue Mar 21 13:04:31 2017 -0600
+++ b/xDotBridge/src/main.cpp	Tue Mar 21 14:29:32 2017 -0600
@@ -232,7 +232,8 @@
             tamperIntFlag = false;
             bbio->prepareSleep();
 		    if (bbio->isCCInAlert()) { // Still in alert mode
-                dot->sleep(2, mDot::RTC_ALARM_OR_INTERRUPT, false);  // Go to sleep and check in 2 secs if CCInAlert is asserted
+		        // Sleep for 5 seconds to ensure that receiver does not miss a message sequence
+                dot->sleep(5, mDot::RTC_ALARM_OR_INTERRUPT, false);  // Go to sleep and check in 5 secs if CCInAlert is asserted
 		    }
 		    else {
                 dot->sleep(0, mDot::INTERRUPT, false);  // Go to sleep until wake button