diff options
| author | Jean-François Milants <jf@codingfield.com> | 2021-01-17 09:39:46 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2021-01-17 09:39:46 (GMT) |
| commit | 04063cf0af29e09946bf3d1fa77ae91235cd8b84 (patch) | |
| tree | 96adf3bcf0c869c738d8c5f73985296b9f7bb105 /src/components/heartrate/Ppg.cpp | |
| parent | c82c22650cf7d7a8f31146345b9510cc6eabc5f8 (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/Ppg.cpp')
| -rw-r--r-- | src/components/heartrate/Ppg.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/heartrate/Ppg.cpp b/src/components/heartrate/Ppg.cpp index c9a1103..27617c1 100644 --- a/src/components/heartrate/Ppg.cpp +++ b/src/components/heartrate/Ppg.cpp @@ -94,3 +94,7 @@ void Ppg::SetOffset(uint16_t offset) { this->offset = offset; dataIndex = 0; } + +void Ppg::Reset() { + dataIndex = 0; +} |
