Skip to content

Commit b967f9b

Browse files
committed
remove background start timestamp reset on sleep
1 parent 235ce23 commit b967f9b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/heartratetask/HeartRateTask.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ void HeartRateTask::Work() {
3737
state = States::Idle;
3838
} else if (state == States::Measuring) {
3939
state = States::BackgroundWaiting;
40-
backgroundMeasurementWaitingStart = xTaskGetTickCount();
4140
StopMeasurement();
4241
}
4342
break;

src/heartratetask/HeartRateTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace Pinetime {
4242
Controllers::HeartRateController& controller;
4343
Controllers::Ppg ppg;
4444
int lastBpm = 0;
45-
TickType_t backgroundMeasurementWaitingStart;
45+
TickType_t backgroundMeasurementWaitingStart = 0;
4646
};
4747

4848
}

0 commit comments

Comments
 (0)