Skip to content

Commit

Permalink
remove background start timestamp reset on sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
patricgruber committed May 11, 2023
1 parent 7180646 commit c5d2e42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/heartratetask/HeartRateTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void HeartRateTask::Work() {
state = States::Idle;
} else if (state == States::Measuring) {
state = States::BackgroundWaiting;
backgroundMeasurementWaitingStart = xTaskGetTickCount();
StopMeasurement();
}
break;
Expand Down
2 changes: 1 addition & 1 deletion src/heartratetask/HeartRateTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace Pinetime {
Controllers::HeartRateController& controller;
Controllers::Ppg ppg;
int lastBpm = 0;
TickType_t backgroundMeasurementWaitingStart;
TickType_t backgroundMeasurementWaitingStart = 0;
};

}
Expand Down

0 comments on commit c5d2e42

Please sign in to comment.