changed ReadHrs and ReadAls to uint32, and did static_cast instead of hidden cast when using it
This commit is contained in:
parent
4cc95091ab
commit
464b689a03
3 changed files with 5 additions and 6 deletions
|
|
@ -65,8 +65,7 @@ void HeartRateTask::Work() {
|
|||
}
|
||||
|
||||
if (measurementStarted) {
|
||||
auto hrs = heartRateSensor.ReadHrs();
|
||||
ppg.Preprocess(hrs);
|
||||
ppg.Preprocess(static_cast<float>(heartRateSensor.ReadHrs()));
|
||||
auto bpm = ppg.HeartRate();
|
||||
|
||||
if (lastBpm == 0 && bpm == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue