Fix #209. Use int8_t for PPG data array

This commit is contained in:
david
2021-05-01 12:10:44 +02:00
parent eedff2c06c
commit a62b81da3d
2 changed files with 8 additions and 8 deletions

View File

@@ -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();
};
}
}
}