mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 15:39:59 +00:00
don't retry sending reset on iOS after init with BlueTool
This commit is contained in:
parent
e94343db7e
commit
a0cf2f3fb8
@ -847,10 +847,13 @@ static void hci_initializing_run(void){
|
|||||||
switch (hci_stack->substate){
|
switch (hci_stack->substate){
|
||||||
case HCI_INIT_SEND_RESET:
|
case HCI_INIT_SEND_RESET:
|
||||||
hci_state_reset();
|
hci_state_reset();
|
||||||
|
|
||||||
|
#ifndef USE_BLUETOOL
|
||||||
// prepare reset if command complete not received in 100ms
|
// prepare reset if command complete not received in 100ms
|
||||||
run_loop_set_timer(&hci_stack->timeout, 100);
|
run_loop_set_timer(&hci_stack->timeout, 100);
|
||||||
run_loop_set_timer_handler(&hci_stack->timeout, hci_initialization_timeout_handler);
|
run_loop_set_timer_handler(&hci_stack->timeout, hci_initialization_timeout_handler);
|
||||||
run_loop_add_timer(&hci_stack->timeout);
|
run_loop_add_timer(&hci_stack->timeout);
|
||||||
|
#endif
|
||||||
// send command
|
// send command
|
||||||
hci_stack->substate = HCI_INIT_W4_SEND_RESET;
|
hci_stack->substate = HCI_INIT_W4_SEND_RESET;
|
||||||
hci_send_cmd(&hci_reset);
|
hci_send_cmd(&hci_reset);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user