changed ReadHrs and ReadAls to uint32, and did static_cast instead of hidden cast when using it

This commit is contained in:
Yehoshua Pesach Wallach
2021-12-13 12:47:52 +02:00
parent 4cc95091ab
commit 464b689a03
3 changed files with 5 additions and 6 deletions

View File

@@ -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)