diff options
author | Tim Keller <geekboy1011@gmail.com> | 2021-09-27 01:27:08 +0000 |
---|---|---|
committer | Tim Keller <geekboy1011@gmail.com> | 2022-01-04 01:57:18 +0000 |
commit | ad42cdf120ddd835331be6c1d1ee86e8e14a4479 (patch) | |
tree | 4646af01729ffc311301a393b95cc20721208174 /src | |
parent | d270275bd2d1044cb4db9af8efc1d766617b07a1 (diff) |
Cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/components/motion/MotionController.h | 4 | ||||
-rw-r--r-- | src/systemtask/SystemTask.cpp | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h index f9c285e8..bd925cc7 100644 --- a/src/components/motion/MotionController.h +++ b/src/components/motion/MotionController.h @@ -13,10 +13,6 @@ namespace Pinetime { BMA421, BMA425, }; - enum class WakeUpMode : uint8_t { - RaiseWrist = 0, - Shake, - }; void Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps); diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 7da0a113..54f3c840 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -470,7 +470,7 @@ void SystemTask::UpdateMotion() { motionController.IsSensorOk(motionSensor.IsOk()); motionController.Update(motionValues.x, motionValues.y, motionValues.z, motionValues.steps); - // TODO add modes arg + if (settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist) && motionController.Should_RaiseWake(isSleeping)) { GoToRunning(); |