summaryrefslogtreecommitdiff
path: root/src/components/heartrate/HeartRateController.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-01-17 10:39:46 +0100
committerJean-François Milants <jf@codingfield.com>2021-01-17 10:39:46 +0100
commit04063cf0af29e09946bf3d1fa77ae91235cd8b84 (patch)
tree96adf3bcf0c869c738d8c5f73985296b9f7bb105 /src/components/heartrate/HeartRateController.h
parentc82c22650cf7d7a8f31146345b9510cc6eabc5f8 (diff)
HR Sensor : Add start/stop button to the HeartRate app (the HR sensors stays ON when the app is closed), display the HR value on the Clock app.
Diffstat (limited to 'src/components/heartrate/HeartRateController.h')
-rw-r--r--src/components/heartrate/HeartRateController.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/heartrate/HeartRateController.h b/src/components/heartrate/HeartRateController.h
index b401f76a..bbb1b88b 100644
--- a/src/components/heartrate/HeartRateController.h
+++ b/src/components/heartrate/HeartRateController.h
@@ -12,7 +12,7 @@ namespace Pinetime {
namespace Controllers {
class HeartRateController {
public:
- enum class States { NotEnoughData, NoTouch, Running};
+ enum class States { Stopped, NotEnoughData, NoTouch, Running};
explicit HeartRateController(System::SystemTask& systemTask);
@@ -27,7 +27,7 @@ namespace Pinetime {
private:
System::SystemTask& systemTask;
Applications::HeartRateTask* task = nullptr;
- States state = States::NotEnoughData;
+ States state = States::Stopped;
uint8_t heartRate = 0;
};
}