mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(usb_host_lib): Returned task suspend
This commit is contained in:
@ -206,7 +206,7 @@ void class_driver_task(void *arg)
|
|||||||
SemaphoreHandle_t mux_lock = xSemaphoreCreateMutex();
|
SemaphoreHandle_t mux_lock = xSemaphoreCreateMutex();
|
||||||
if (mux_lock == NULL) {
|
if (mux_lock == NULL) {
|
||||||
ESP_LOGE(TAG, "Unable to create class driver mutex");
|
ESP_LOGE(TAG, "Unable to create class driver mutex");
|
||||||
vTaskDelete(NULL);
|
vTaskSuspend(NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -256,7 +256,7 @@ void class_driver_task(void *arg)
|
|||||||
if (mux_lock != NULL) {
|
if (mux_lock != NULL) {
|
||||||
vSemaphoreDelete(mux_lock);
|
vSemaphoreDelete(mux_lock);
|
||||||
}
|
}
|
||||||
vTaskDelete(NULL);
|
vTaskSuspend(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void class_driver_client_deregister(void)
|
void class_driver_client_deregister(void)
|
||||||
|
Reference in New Issue
Block a user