From ad42cdf120ddd835331be6c1d1ee86e8e14a4479 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 27 Sep 2021 01:27:08 +0000 Subject: Cleanup --- src/components/motion/MotionController.h | 4 ---- src/systemtask/SystemTask.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3