Skip to content

Heart Rate Limit  #2

@jasperan

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)

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