This commit is contained in:
Tim Keller 2021-09-27 01:27:08 +00:00
parent d270275bd2
commit ad42cdf120
2 changed files with 1 additions and 5 deletions

View file

@ -13,10 +13,6 @@ namespace Pinetime {
BMA421, BMA421,
BMA425, BMA425,
}; };
enum class WakeUpMode : uint8_t {
RaiseWrist = 0,
Shake,
};
void Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps); void Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps);

View file

@ -470,7 +470,7 @@ void SystemTask::UpdateMotion() {
motionController.IsSensorOk(motionSensor.IsOk()); motionController.IsSensorOk(motionSensor.IsOk());
motionController.Update(motionValues.x, motionValues.y, motionValues.z, motionValues.steps); motionController.Update(motionValues.x, motionValues.y, motionValues.z, motionValues.steps);
// TODO add modes arg
if (settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist) && if (settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist) &&
motionController.Should_RaiseWake(isSleeping)) { motionController.Should_RaiseWake(isSleeping)) {
GoToRunning(); GoToRunning();