Bluetooth: shell: Use selected ID when selecting default connection
Use the selected local ID when switching the default connection. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
71ab1ec5a7
commit
4876923085
1 changed files with 1 additions and 1 deletions
|
@ -1380,7 +1380,7 @@ static int cmd_select(const struct shell *shell, size_t argc, char *argv[])
|
|||
return err;
|
||||
}
|
||||
|
||||
conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &addr);
|
||||
conn = bt_conn_lookup_addr_le(selected_id, &addr);
|
||||
if (!conn) {
|
||||
shell_error(shell, "No matching connection found");
|
||||
return -ENOEXEC;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue