Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve heart rate reading to prevent crashes #8

Open
maximDevTweet opened this issue Dec 28, 2019 · 0 comments
Open

Improve heart rate reading to prevent crashes #8

maximDevTweet opened this issue Dec 28, 2019 · 0 comments

Comments

@maximDevTweet
Copy link

maximDevTweet commented Dec 28, 2019

In HRM subview body and heart rate sensors are used. The exercise object itself provides in stats (exercise.stats.heartRate.current) the current heart rate, so this data can be directly read from the exercise without explicitly starting of heart rate sensor.
In my more complex apps I had app crashes on Versa 2, because I started the sensors and the exercises. On simulator it is displayed that the heart rate sensors are running anyway, when an exercise is started.
A fix could be to pass the exercise to heart rate subview in order to read the needed data there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant