forked from leojrfs/miband2
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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
Labels
No labels