diff options
| author | JF002 <JF002@users.noreply.github.com> | 2021-05-02 12:55:43 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-02 12:55:43 (GMT) |
| commit | e3ead332b9db3ad7b6acde933b6a7943b3ac81e2 (patch) | |
| tree | 3a135cc153081ee3bdc17e4b0bc52b5c2c57e828 /src/components/heartrate/Ppg.h | |
| parent | 65e4fe0310c2bb89e0710e8e3da2a206673a783d (diff) | |
| parent | a62b81da3dca80b96c33b702b4265bcfa694d051 (diff) | |
Merge pull request #319 from DavidVentura/use-byte-for-ppg
Use int8_t for PPG data array
Diffstat (limited to 'src/components/heartrate/Ppg.h')
| -rw-r--r-- | src/components/heartrate/Ppg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/heartrate/Ppg.h b/src/components/heartrate/Ppg.h index 6a2fcf1..ee07dfc 100644 --- a/src/components/heartrate/Ppg.h +++ b/src/components/heartrate/Ppg.h @@ -10,14 +10,14 @@ namespace Pinetime { public: explicit Ppg(float spl); - int Preprocess(float spl); + int8_t Preprocess(float spl); float HeartRate(); void SetOffset(uint16_t i); void Reset(); private: - std::array<int, 200> data; + std::array<int8_t, 200> data; size_t dataIndex = 0; float offset; Biquad hpf; @@ -27,4 +27,4 @@ namespace Pinetime { float ProcessHeartRate(); }; } -}
\ No newline at end of file +} |
