diff options
| author | JF002 <JF002@users.noreply.github.com> | 2021-06-12 11:02:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-12 11:02:06 +0200 |
| commit | 0ce98c7ac7ba66acaf504be9bb042796e12f2733 (patch) | |
| tree | 3f9c7f96f0fab64f581035c72480596a4cc4db43 /src/components/heartrate/HeartRateController.h | |
| parent | 79f0fcb07aa80eb70385223272e29f2ba5657bc8 (diff) | |
| parent | 6d524ebea2c97e309633d5e01c3a1e37c182f27d (diff) | |
Merge pull request #415 from JF002/move-heap-to-static
Move dynamically allocated variables to static variables.
Diffstat (limited to 'src/components/heartrate/HeartRateController.h')
| -rw-r--r-- | src/components/heartrate/HeartRateController.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/heartrate/HeartRateController.h b/src/components/heartrate/HeartRateController.h index d3a8460d..a63f1a70 100644 --- a/src/components/heartrate/HeartRateController.h +++ b/src/components/heartrate/HeartRateController.h @@ -15,8 +15,7 @@ namespace Pinetime { public: enum class States { Stopped, NotEnoughData, NoTouch, Running }; - explicit HeartRateController(System::SystemTask& systemTask); - + HeartRateController() = default; void Start(); void Stop(); void Update(States newState, uint8_t heartRate); @@ -32,7 +31,6 @@ namespace Pinetime { void SetService(Pinetime::Controllers::HeartRateService* service); private: - System::SystemTask& systemTask; Applications::HeartRateTask* task = nullptr; States state = States::Stopped; uint8_t heartRate = 0; |
