Skip to content

Commit ddcfe1a

Browse files
committed
Update comments
1 parent f5714e2 commit ddcfe1a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Firmware/RTK_Everywhere/bluetoothSelect.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,12 @@ class BTLESerial : public virtual BTSerialInterface, public BleSerial
151151
// override BLEServerCallbacks
152152
void onConnect(BLEServer *pServer)
153153
{
154-
// bleConnected = true; Removed until PR is accepted
155-
connectionCallback(ESP_SPP_SRV_OPEN_EVT, nullptr);
154+
connectionCallback(ESP_SPP_SRV_OPEN_EVT, nullptr); //Trigger callback to bluetoothCallback()
156155
}
157156

158157
void onDisconnect(BLEServer *pServer)
159158
{
160-
// bleConnected = false; Removed until PR is accepted
161-
connectionCallback(ESP_SPP_CLOSE_EVT, nullptr);
159+
connectionCallback(ESP_SPP_CLOSE_EVT, nullptr); //Trigger callback to bluetoothCallback()
162160
Server->startAdvertising();
163161
}
164162

0 commit comments

Comments
 (0)