restore num_packets for resend of HCI Reset

This commit is contained in:
Matthias Ringwald 2015-03-30 22:26:50 +02:00
parent 0305bdeab4
commit 7b0d76671f

View File

@ -814,7 +814,9 @@ void le_handle_advertisement_report(uint8_t *packet, int size){
static void hci_initialization_timeout_handler(timer_source_t * ds){
switch (hci_stack->substate){
case HCI_INIT_W4_SEND_RESET:
log_info("Resend HCI Reset");
hci_stack->substate = HCI_INIT_SEND_RESET;
hci_stack->num_cmd_packets = 1;
hci_run();
break;
default: