Skip to content

Watch faces display obviously bogus 0 as heart rate #2362

@Andersama

Description

@Andersama

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:

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.

Preferred solution

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI/UXUser interface/User experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions