Skip to content

Commit cd50f3c

Browse files
MarekPietaanangl
authored andcommitted
applications: nrf_desktop: Start discovery right after connected
Start BLE discovery right after connection is established. There is no need to wait for security level 2. The connection security will be automatically increased, because it's needed to access HIDS. Jira: NCSDK-14084 Signed-off-by: Marek Pieta <[email protected]>
1 parent 127640d commit cd50f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/nrf_desktop/src/modules/ble_discovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static bool app_event_handler(const struct app_event_header *aeh)
340340
cast_ble_peer_event(aeh);
341341

342342
switch (event->state) {
343-
case PEER_STATE_SECURED:
343+
case PEER_STATE_CONNECTED:
344344
discovering_peer_conn = event->id;
345345
bt_conn_ref(discovering_peer_conn);
346346
k_work_submit(&next_discovery_step);

0 commit comments

Comments
 (0)