new_scan_enable_value uses 0xff as 'no change'

This commit is contained in:
matthias.ringwald 2011-08-20 20:21:40 +00:00
parent b031bebb4a
commit eda18bf8f7

View File

@ -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;
}