diff options
| author | Tim Keller <geekboy1011@gmail.com> | 2021-09-27 01:27:08 (GMT) |
|---|---|---|
| committer | Tim Keller <geekboy1011@gmail.com> | 2022-01-04 01:57:18 (GMT) |
| commit | ad42cdf120ddd835331be6c1d1ee86e8e14a4479 (patch) | |
| tree | 4646af01729ffc311301a393b95cc20721208174 | |
| parent | d270275bd2d1044cb4db9af8efc1d766617b07a1 (diff) | |
Cleanup
| -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 f9c285e..bd925cc 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 7da0a11..54f3c84 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(); |
