Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
Diff: xDotBridge/src/main.cpp
- Revision:
- 68:51c25f4f6d9a
- Parent:
- 67:2115a2f1b945
- Child:
- 69:eb391644b346
diff -r 2115a2f1b945 -r 51c25f4f6d9a xDotBridge/src/main.cpp
--- 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
