Skip to content

Heart Rate Limit  #2

Description

@jasperan

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions