Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
Revision 60:5179449a684f, committed 2017-03-06
- Comitter:
- Matt Briggs
- Date:
- Mon Mar 06 15:16:58 2017 -0700
- Parent:
- 59:485545afc4dc
- Child:
- 61:8d9efd33cac9
- Commit message:
- Few quick changes before adding pair code
Changed in this revision
| xDotBridge/src/BaseboardIO.cpp | 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/src/BaseboardIO.cpp Mon Mar 06 09:37:15 2017 -0700
+++ b/xDotBridge/src/BaseboardIO.cpp Mon Mar 06 15:16:58 2017 -0700
@@ -45,7 +45,7 @@
mTamper(TamperPinName),
mPairBtn(PairBtnPinName),
mLed(LedPinName),
- mLrrLed(LrrLedPinName),
+ mLrrLed(LrrLedPinName, 0),
mSwitchedIOCtrl(SwitchedIOCtrlPinName, 0)
{
mPortExpanderVal0 = 0x00;
@@ -130,6 +130,7 @@
logError("Error setting relay during init");
return cmdError;
}
+ ledOff();
logInfo("Baseboard IO initialization successful");
return cmdSuccess;
@@ -261,9 +262,10 @@
CmdResult BaseboardIO::ledOff()
{
mLed = 0;
-#if ALSO_USE_LRR_LED
+ // Always allow setting GPIO0 to 0
+//#if ALSO_USE_LRR_LED
mLrrLed = 0;
-#endif
+//#endif
return cmdSuccess;
}
CmdResult BaseboardIO::relayAlert()
--- a/xDotBridge/src/main.cpp Mon Mar 06 09:37:15 2017 -0700 +++ b/xDotBridge/src/main.cpp Mon Mar 06 15:16:58 2017 -0700 @@ -16,8 +16,6 @@ mDot* dot = NULL; // Used by dot-utils -DigitalOut gpio3(GPIO3, 1); // Flash ~hold signal - volatile bool ccIntFlag; volatile bool tamperIntFlag; volatile bool pairBtnIntFlag;
