summaryrefslogtreecommitdiff
path: root/src/components/motion/MotionController.cpp
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-04-02 16:56:14 +0200
committerJean-François Milants <jf@codingfield.com>2021-04-04 15:56:11 +0200
commit52a90288fd2b744b68d584db316fcf3fede84262 (patch)
treec349c0bbc00c88d1c271604ba84f5e528e093330 /src/components/motion/MotionController.cpp
parentc7cc47ae306b8012c196587f156519b0773aef93 (diff)
Handle return code from BMA driver, and set a flag is the initialization fails. This allows to boot InfiniTime even if the device cannot initialize.
Diffstat (limited to 'src/components/motion/MotionController.cpp')
-rw-r--r--src/components/motion/MotionController.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/motion/MotionController.cpp b/src/components/motion/MotionController.cpp
index bad9d45f..e9ee314b 100644
--- a/src/components/motion/MotionController.cpp
+++ b/src/components/motion/MotionController.cpp
@@ -31,3 +31,6 @@ bool MotionController::ShouldWakeUp(bool isSleeping) {
}
return false;
}
+void MotionController::IsSensorOk(bool isOk) {
+ isSensorOk = isOk;
+}