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:
parent
c7cc47ae30
commit
52a90288fd
7 changed files with 33 additions and 15 deletions
|
|
@ -243,6 +243,7 @@ void SystemTask::UpdateMotion() {
|
|||
if(isSleeping)
|
||||
twiMaster.Sleep();
|
||||
|
||||
motionController.IsSensorOk(motionSensor.IsOk());
|
||||
motionController.Update(motionValues.x,
|
||||
motionValues.y,
|
||||
motionValues.z,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue