We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 238c3f4 commit 85c0557Copy full SHA for 85c0557
CLUE_BLE_Morse_Code/code.py
@@ -78,7 +78,6 @@ def scan_and_connect():
78
# peripheral
79
if MY_NAME == "PERIPHERAL":
80
print("Advertising.")
81
- central = False
82
ble.start_advertising(advertisement)
83
84
while not ble.connected:
@@ -95,7 +94,6 @@ def scan_and_connect():
95
94
continue
96
return connection[UARTService]
97
98
- # central
99
else:
100
print("Waiting.")
101
friend = None
@@ -121,8 +119,7 @@ def scan_and_connect():
121
119
# Connect to friend
122
120
print("Connecting to", friend.complete_name)
123
ble.connect(friend)
124
- central = True
125
-
+
126
127
# Return a UART object to use
128
print("Central - using my UART service.")
0 commit comments