Merge branch 'fix/usb_host_lib_example' into 'master'

fix(usb_host_lib): Returned task suspend

See merge request espressif/esp-idf!34046
This commit is contained in:
Roman Leonov
2024-10-09 18:24:54 +08:00

View File

@@ -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)