Skip to content

Commit e438c43

Browse files
authored
Merge pull request #11 from dhalbert/simpler-example
Simplify example
2 parents 9854311 + bd481a9 commit e438c43

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

examples/ble_heart_rate_simpletest.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
ble = adafruit_ble.BLERadio() # pylint: disable=no-member
1515

1616
hr_connection = None
17-
# Start with a fresh connection.
18-
if ble.connected:
19-
for connection in ble.connections:
20-
if HeartRateService in connection:
21-
connection.disconnect()
22-
break
2317

2418
while True:
2519
print("Scanning...")

0 commit comments

Comments
 (0)