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.

This commit is contained in:
Jean-François Milants
2021-04-02 16:56:14 +02:00
parent c7cc47ae30
commit 52a90288fd
7 changed files with 33 additions and 15 deletions

View File

@@ -31,3 +31,6 @@ bool MotionController::ShouldWakeUp(bool isSleeping) {
}
return false;
}
void MotionController::IsSensorOk(bool isOk) {
isSensorOk = isOk;
}