Skip to content

Commit b4edbfa

Browse files
committed
Removed [0] that was breaking stuff
1 parent 7d2b3f9 commit b4edbfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CircuitPython_Pyloton/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
# You may need to remove some parts of the following 2 lines depending on what
4848
# devices you are using.
49-
if hr_connection and speed_cad_connections[0] and ams:
49+
if hr_connection and speed_cad_connections and ams:
5050
if hr_connection.connected and speed_cad_connections[0].connected and ams.connected:
5151
pyloton.setup_display()
5252
break

0 commit comments

Comments
 (0)