Skip to content

Commit

Permalink
Merge branch 'master' into pw_roll_with_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Dec 13, 2022
2 parents ac1da85 + 64b2ca4 commit 14f4001
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/controller/SetUpCodePairer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ void SetUpCodePairer::OnDiscoveredDeviceOverBle(BLE_CONNECTION_OBJECT connObj)

mWaitingForDiscovery[kBLETransport] = false;

// In order to not wait for all the possible addresses discovered over mdns to
// be tried before trying to connect over BLE, the discovered connection object is
// inserted at the beginning of the list.
//
// It makes it the 'next' thing to try to connect to if there are already some
// discovered parameters in the list.
mDiscoveredParameters.emplace_front(connObj);
ConnectToDiscoveredDevice();
}
Expand Down

0 comments on commit 14f4001

Please sign in to comment.