mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 09:08:06 +00:00
hci: set substate when setting EIR data
This commit is contained in:
parent
186bfbec4d
commit
8a1144706a
@ -1083,11 +1083,12 @@ static void hci_initializing_run(void){
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case HCI_INIT_WRITE_EIR_DATA:
|
case HCI_INIT_WRITE_EIR_DATA:
|
||||||
|
hci_stack->substate = HCI_INIT_W4_WRITE_EIR_DATA;
|
||||||
hci_send_cmd(&hci_write_extended_inquiry_response, 0, hci_stack->eir_data);
|
hci_send_cmd(&hci_write_extended_inquiry_response, 0, hci_stack->eir_data);
|
||||||
break;
|
break;
|
||||||
case HCI_INIT_WRITE_INQUIRY_MODE:
|
case HCI_INIT_WRITE_INQUIRY_MODE:
|
||||||
hci_send_cmd(&hci_write_inquiry_mode, (int) hci_stack->inquiry_mode);
|
|
||||||
hci_stack->substate = HCI_INIT_W4_WRITE_INQUIRY_MODE;
|
hci_stack->substate = HCI_INIT_W4_WRITE_INQUIRY_MODE;
|
||||||
|
hci_send_cmd(&hci_write_inquiry_mode, (int) hci_stack->inquiry_mode);
|
||||||
break;
|
break;
|
||||||
case HCI_INIT_WRITE_SCAN_ENABLE:
|
case HCI_INIT_WRITE_SCAN_ENABLE:
|
||||||
hci_send_cmd(&hci_write_scan_enable, (hci_stack->connectable << 1) | hci_stack->discoverable); // page scan
|
hci_send_cmd(&hci_write_scan_enable, (hci_stack->connectable << 1) | hci_stack->discoverable); // page scan
|
||||||
|
Loading…
Reference in New Issue
Block a user