Cleanup
This commit is contained in:
parent
d270275bd2
commit
ad42cdf120
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue