Bluetooth: Shell: Move scan filter to function
Move the scan filter to a new function so that it may be reused by other shell modules. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
ca1fd03520
commit
8cd0758bdf
5 changed files with 59 additions and 18 deletions
|
@ -561,6 +561,10 @@ static void scan_recv_cb(const struct bt_le_scan_recv_info *info,
|
|||
return;
|
||||
}
|
||||
|
||||
if (!passes_scan_filter(info, ad)) {
|
||||
return;
|
||||
}
|
||||
|
||||
bt_data_parse(ad, broadcast_source_found, (void *)info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue