mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
gap: fix mechanism to stop scanning if needed
This commit is contained in:
parent
05002aec5b
commit
2d5c2a2746
@ -3643,7 +3643,7 @@ static bool hci_run_general_gap_le(void){
|
||||
// - whitelist change required but used for scanning
|
||||
bool scanning_uses_whitelist = (hci_stack->le_scan_filter_policy & 1) == 1;
|
||||
if ((hci_stack->le_scanning_param_update) || !hci_stack->le_scanning_enabled || scanning_uses_whitelist){
|
||||
scanning_stop = false;
|
||||
scanning_stop = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user