diff options
Diffstat (limited to 'src/components/heartrate/Ppg.h')
-rw-r--r-- | src/components/heartrate/Ppg.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/heartrate/Ppg.h b/src/components/heartrate/Ppg.h index 747ae019..ee07dfcf 100644 --- a/src/components/heartrate/Ppg.h +++ b/src/components/heartrate/Ppg.h @@ -10,22 +10,21 @@ 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; Ptagc agc; Biquad lpf; - float ProcessHeartRate(); }; } -}
\ No newline at end of file +} |