mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-05 00:40:19 +00:00
new_scan_enable_value uses 0xff as 'no change'
This commit is contained in:
parent
b031bebb4a
commit
eda18bf8f7
@ -917,7 +917,7 @@ void hci_run(){
|
|||||||
if (!hci_can_send_packet_now(HCI_COMMAND_DATA_PACKET)) return;
|
if (!hci_can_send_packet_now(HCI_COMMAND_DATA_PACKET)) return;
|
||||||
|
|
||||||
// send scan enable
|
// send scan enable
|
||||||
if (hci_stack.new_scan_enable_value){
|
if (hci_stack.new_scan_enable_value != 0xff){
|
||||||
hci_send_cmd(&hci_write_scan_enable, hci_stack.new_scan_enable_value);
|
hci_send_cmd(&hci_write_scan_enable, hci_stack.new_scan_enable_value);
|
||||||
hci_stack.new_scan_enable_value = 0xff;
|
hci_stack.new_scan_enable_value = 0xff;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user