Skip to content

Commit

Permalink
Fix ignoreSteps not being reset after midnight
Browse files Browse the repository at this point in the history
  • Loading branch information
JustScott committed Feb 20, 2025
1 parent cfa8c79 commit c72013b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/motion/MotionController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void MotionController::Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps)

if (settingsController.isSleepOptionOn(Settings::SleepOption::IgnoreSteps) &&
settingsController.GetNotificationStatus() == Pinetime::Controllers::Settings::Notification::Sleep) {
ignoreSteps += deltaSteps;
this->ignoreSteps += deltaSteps;
}
}

Expand Down

0 comments on commit c72013b

Please sign in to comment.