Skip to content

Commit 85c0557

Browse files
committed
white space, unused variable
1 parent 238c3f4 commit 85c0557

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CLUE_BLE_Morse_Code/code.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def scan_and_connect():
7878
# peripheral
7979
if MY_NAME == "PERIPHERAL":
8080
print("Advertising.")
81-
central = False
8281
ble.start_advertising(advertisement)
8382

8483
while not ble.connected:
@@ -95,7 +94,6 @@ def scan_and_connect():
9594
continue
9695
return connection[UARTService]
9796

98-
# central
9997
else:
10098
print("Waiting.")
10199
friend = None
@@ -121,8 +119,7 @@ def scan_and_connect():
121119
# Connect to friend
122120
print("Connecting to", friend.complete_name)
123121
ble.connect(friend)
124-
central = True
125-
122+
126123

127124
# Return a UART object to use
128125
print("Central - using my UART service.")

0 commit comments

Comments
 (0)