mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-20 16:07:22 +00:00
btshell: Make sure to have scannable 0 when directed
Since for legacy_pdu scannable is set autmatically, make sure it is off when directed advertising is choosen
This commit is contained in:
@@ -213,6 +213,10 @@ cmd_advertise_configure(int argc, char **argv)
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (params.directed && params.legacy_pdu) {
|
||||
params.scannable = 0;
|
||||
}
|
||||
|
||||
params.own_addr_type = parse_arg_kv_dflt("own_addr_type",
|
||||
cmd_own_addr_types,
|
||||
BLE_OWN_ADDR_PUBLIC, &rc);
|
||||
|
||||
Reference in New Issue
Block a user