-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Verification
- I searched for similar issues (including closed issues) and found none was relevant.
Introduce the issue
In the source code it appears that 0 bpm is being used as part of the state machine for the heart rate tracker, and also an error value. However this ends up translating into the value returned and displayed on screen (at least of 1.15).
See:
InfiniTime/src/components/heartrate/Ppg.cpp
Line 156 in 075e02a
| int Ppg::HeartRate() { |
and:
| auto sensorData = heartRateSensor.ReadHrsAls(); |
The code should probably be reworked such that 0 is a valid state (although ideally NONE of us should see such a number for real). Also a visual indicator that the heart rate tracker "needs to collect more information" would also make sense. Maybe a pulsing heart icon, piece of text like dots . .. ... etc.
This likely means watch face code should be able to check enoughData in addition to whether the tracker is running.
| if (heartbeatRunning.Get()) { |
Preferred solution
No response
Version
No response