We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03863eb commit 1b401bfCopy full SHA for 1b401bf
1 file changed
CircuitPython_Pyloton/code.py
@@ -54,13 +54,14 @@
54
# Comment out the following line and uncomment the previous line if you aren't using a
55
# heart rate monitor
56
if hr_connection and hr_connection.connected and speed_cad_connections:
57
- print("Fetch connection")
58
- hr_service = hr_connection[HeartRateService]
59
- #hr_service = None
60
- print("Location:", hr_service.location)
+ if heart:
+ print("Fetch connection")
+ hr_service = hr_connection[HeartRateService]
+ print("Location:", hr_service.location)
61
pyloton.setup_display()
62
break
63
64
+# Replace following line with while True if you aren't using a heart rate sensor
65
while hr_connection.connected:
66
pyloton.update_display()
67
pyloton.ams_remote()
0 commit comments