Bluetooth: shell: Fix advertise command parameters
Fix the advertise command not setting the peer address parameter to NULL, this could turn it into a directed advertiser. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
fbdeda9df2
commit
8b5d91e659
1 changed files with 1 additions and 0 deletions
|
@ -738,6 +738,7 @@ static int cmd_advertise(const struct shell *shell, size_t argc, char *argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
param.peer = NULL;
|
||||
param.id = selected_id;
|
||||
param.interval_min = BT_GAP_ADV_FAST_INT_MIN_2;
|
||||
param.interval_max = BT_GAP_ADV_FAST_INT_MAX_2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue