Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Fixed BLE server not starting?
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-baumann committed Dec 2, 2023
1 parent a21b873 commit 9a15bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private async Task<ushort> PublishL2Cap(bool secure)
try
{
Manager.PublishL2CapChannel(secure);
return await taskCompletionSource.Task.ConfigureAwait(false);
return await taskCompletionSource.Task;
}
finally
{
Expand Down
1 change: 1 addition & 0 deletions Sources/SMTSP/NearbyCommunication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public async Task StartReceiving()
communicationService.OnReceive += OnReceive;
}

Logger.Info("Starting BLE L2CAP server...");
var psm = await BleDiscovery.StartServer();
Logger.Success($"Started BLE L2CAP server. PSM: {psm}");
}
Expand Down

0 comments on commit 9a15bcb

Please sign in to comment.