Skip to content

Commit 6a731f2

Browse files
committed
Linting
1 parent 1b01fce commit 6a731f2

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

CircuitPython_Pyloton/code.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from time import time
22
import adafruit_ble
33
import board
4-
from adafruit_ble_heart_rate import HeartRateService
54
import pyloton
65

76
# PyLint can't find BLERadio for some reason so special case it here.
@@ -10,11 +9,11 @@
109
display = board.DISPLAY
1110

1211

13-
heart=True
14-
speed=True
15-
cad=True
16-
ams=True
17-
debug=False
12+
heart = True
13+
speed = True
14+
cad = True
15+
ams = True
16+
debug = False
1817

1918
# 84.229 is wheel circumference (700x23 in my case)
2019
pyloton = pyloton.Pyloton(ble, display, 84.229, heart, speed, cad, ams, debug)
@@ -47,12 +46,10 @@
4746

4847
# You may need to remove some parts of the following line depending on what
4948
# devices you are using.
50-
print(type(hr_connection))
51-
print(type(speed_cad_connections))
52-
print(type(ams))
53-
if hr_connection and hr_connection.connected and speed_cad_connections[0] and speed_cad_connections[0].connected and ams and ams.connected:
54-
pyloton.setup_display()
55-
break
49+
if hr_connection and speed_cad_connections[0] and ams:
50+
if hr_connection.connected and speed_cad_connections[0].connected and ams.connected:
51+
pyloton.setup_display()
52+
break
5653

5754
# You may need to remove some parts of the following line depending on what devices you are using.
5855
while hr_connection.connected and speed_cad_connections[0].connected and ams.connected:

0 commit comments

Comments
 (0)