From 8daddf87782c1228a44528da6f67d8dfce3edb40 Mon Sep 17 00:00:00 2001 From: mark9064 <30447455+mark9064@users.noreply.github.com> Date: Wed, 18 Jun 2025 14:09:57 +0100 Subject: Background heartrate measurement Co-Authored-By: Patric Gruber --- src/displayapp/screens/HeartRate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/displayapp/screens/HeartRate.cpp') diff --git a/src/displayapp/screens/HeartRate.cpp b/src/displayapp/screens/HeartRate.cpp index 1a84d349..14c873e2 100644 --- a/src/displayapp/screens/HeartRate.cpp +++ b/src/displayapp/screens/HeartRate.cpp @@ -98,12 +98,12 @@ void HeartRate::Refresh() { void HeartRate::OnStartStopEvent(lv_event_t event) { if (event == LV_EVENT_CLICKED) { if (heartRateController.State() == Controllers::HeartRateController::States::Stopped) { - heartRateController.Start(); + heartRateController.Enable(); UpdateStartStopButton(heartRateController.State() != Controllers::HeartRateController::States::Stopped); wakeLock.Lock(); lv_obj_set_style_local_text_color(label_hr, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::highlight); } else { - heartRateController.Stop(); + heartRateController.Disable(); UpdateStartStopButton(heartRateController.State() != Controllers::HeartRateController::States::Stopped); wakeLock.Release(); lv_obj_set_style_local_text_color(label_hr, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::lightGray); -- cgit v1.2.3-70-g09d2