From eda18bf8f7bfe79dd012a1c25d251cc6dcec31f8 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Sat, 20 Aug 2011 20:21:40 +0000 Subject: [PATCH] new_scan_enable_value uses 0xff as 'no change' --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 8f46a83a6..5f469055b 100644 --- a/src/hci.c +++ b/src/hci.c @@ -917,7 +917,7 @@ void hci_run(){ if (!hci_can_send_packet_now(HCI_COMMAND_DATA_PACKET)) return; // 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_stack.new_scan_enable_value = 0xff; }