mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
hci: fix gap_stop_scan - regression from 3251a10
This commit is contained in:
parent
1470db0ca8
commit
787e73a54d
@ -3434,7 +3434,7 @@ static void hci_run(void){
|
||||
return;
|
||||
}
|
||||
// finally, we can enable/disable le scan
|
||||
if ((hci_stack->le_scanning_enabled && !hci_stack->le_scanning_active)){
|
||||
if ((hci_stack->le_scanning_enabled != hci_stack->le_scanning_active)){
|
||||
hci_stack->le_scanning_active = hci_stack->le_scanning_enabled;
|
||||
hci_send_cmd(&hci_le_set_scan_enable, hci_stack->le_scanning_enabled, 0);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user