mirror of
https://github.com/espressif/esp-idf
synced 2025-03-11 10:09:08 -04:00
fix(usb_host_lib): Returned task suspend
This commit is contained in:
parent
670f11644f
commit
79d7c23315
@ -206,7 +206,7 @@ void class_driver_task(void *arg)
|
||||
SemaphoreHandle_t mux_lock = xSemaphoreCreateMutex();
|
||||
if (mux_lock == NULL) {
|
||||
ESP_LOGE(TAG, "Unable to create class driver mutex");
|
||||
vTaskDelete(NULL);
|
||||
vTaskSuspend(NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -256,7 +256,7 @@ void class_driver_task(void *arg)
|
||||
if (mux_lock != NULL) {
|
||||
vSemaphoreDelete(mux_lock);
|
||||
}
|
||||
vTaskDelete(NULL);
|
||||
vTaskSuspend(NULL);
|
||||
}
|
||||
|
||||
void class_driver_client_deregister(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user