minor bug fixes for releasing bluedroid task events and deleting message queue
This commit is contained in:
parent
1c877be609
commit
833eb88679
3 changed files with 8 additions and 8 deletions
|
@ -242,10 +242,10 @@ static void hci_host_thread_handler(void *arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
osi_free(e);
|
osi_free(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void set_data_queue(fixed_queue_t *queue) {
|
static void set_data_queue(fixed_queue_t *queue) {
|
||||||
hci_host_env.upwards_data_queue = queue;
|
hci_host_env.upwards_data_queue = queue;
|
||||||
|
|
|
@ -324,10 +324,10 @@ static void btu_task_thread_handler(void *arg)
|
||||||
fixed_queue_process(btu_oneshot_alarm_queue);
|
fixed_queue_process(btu_oneshot_alarm_queue);
|
||||||
fixed_queue_process(btu_l2cap_alarm_queue);
|
fixed_queue_process(btu_l2cap_alarm_queue);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
osi_free(e);
|
osi_free(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void btu_task_post(void)
|
void btu_task_post(void)
|
||||||
|
|
|
@ -68,11 +68,11 @@ static void bt_app_task_handler(void *arg)
|
||||||
LOG_ERROR("button_press_event come in,button_value=%x\n",e->par);
|
LOG_ERROR("button_press_event come in,button_value=%x\n",e->par);
|
||||||
button_msg[1] = e->par;
|
button_msg[1] = e->par;
|
||||||
button_msg_notify(2,button_msg);
|
button_msg_notify(2,button_msg);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
osi_free(e);
|
osi_free(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void bt_app_task_post(void)
|
static void bt_app_task_post(void)
|
||||||
{
|
{
|
||||||
|
@ -201,7 +201,7 @@ static void bt_app_task_shut_down(void)
|
||||||
fixed_queue_unregister_dequeue(bt_app_general_alarm_queue);
|
fixed_queue_unregister_dequeue(bt_app_general_alarm_queue);
|
||||||
|
|
||||||
vTaskDelete(xBtaApp1TaskHandle);
|
vTaskDelete(xBtaApp1TaskHandle);
|
||||||
vTaskDelete(xBtaApp1Queue);
|
vQueueDelete(xBtaApp1Queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue