Skip to content

Commit c72013b

Browse files
committed
Fix ignoreSteps not being reset after midnight
1 parent cfa8c79 commit c72013b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/motion/MotionController.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void MotionController::Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps)
6767

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

0 commit comments

Comments
 (0)