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

Heart Rate Limit #2

Open
jasperan opened this issue Sep 12, 2018 · 0 comments
Open

Heart Rate Limit #2

jasperan opened this issue Sep 12, 2018 · 0 comments

Comments

@jasperan
Copy link

There is a problem in lines:

if arg.heart:
    print("Cont. HRM start")
    band.hrmStopContinuous()
    band.hrmStartContinuous()
    for i in range(30):

band.waitForNotifications(1.0)

More specifically:

    for i in range(30):

band.waitForNotifications(1.0)

There are only ten requests that come. After that, the heart rate monitoring stops.

I fixed it easily by editing this into this code:

    while True:
        band.hrmStopContinuous()
        band.hrmStartContinuous()
        for i in range(10):
            band.waitForNotifications(1.0)
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