mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
Do not set unsigned step count to -1
This commit is contained in:
parent
5b38885b44
commit
29f8c8e30c
|
@ -37,8 +37,11 @@ namespace {
|
|||
}
|
||||
|
||||
void MotionController::AdvanceDay() {
|
||||
--nbSteps; // Higher index = further in the past
|
||||
nbSteps[today] = -1; // Ensure that the `this->nbSteps[today] != nbSteps` condition in `Update()` will be FALSE
|
||||
--nbSteps; // Higher index = further in the past
|
||||
nbSteps[today] = 0;
|
||||
if (service != nullptr) {
|
||||
service->OnNewStepCountValue(nbSteps[today]);
|
||||
}
|
||||
}
|
||||
|
||||
void MotionController::Update(int16_t x, int16_t y, int16_t z, MotionController::step_t nbSteps) {
|
||||
|
|
Loading…
Reference in a new issue