aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/heartrate/HeartRateController.h
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2025-06-18 14:09:57 +0100
committermark9064 <30447455+mark9064@users.noreply.github.com>2025-11-05 10:34:49 +0000
commit8daddf87782c1228a44528da6f67d8dfce3edb40 (patch)
treedead2a56c55f5eec74c70f42389c89e379aa4ce7 /src/components/heartrate/HeartRateController.h
parent04afd22943cf4d6a826e09cf5fd246886ee7cacf (diff)
Background heartrate measurement
Co-Authored-By: Patric Gruber <me@patric-gruber.at>
Diffstat (limited to 'src/components/heartrate/HeartRateController.h')
-rw-r--r--src/components/heartrate/HeartRateController.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/heartrate/HeartRateController.h b/src/components/heartrate/HeartRateController.h
index f66c79f8..5bd3a8ef 100644
--- a/src/components/heartrate/HeartRateController.h
+++ b/src/components/heartrate/HeartRateController.h
@@ -15,11 +15,11 @@ namespace Pinetime {
namespace Controllers {
class HeartRateController {
public:
- enum class States { Stopped, NotEnoughData, NoTouch, Running };
+ enum class States : uint8_t { Stopped, NotEnoughData, NoTouch, Running };
HeartRateController() = default;
- void Start();
- void Stop();
+ void Enable();
+ void Disable();
void Update(States newState, uint8_t heartRate);
void SetHeartRateTask(Applications::HeartRateTask* task);