changed ReadHrs and ReadAls to uint32, and did static_cast instead of hidden cast when using it
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user