From 958bfcbf59c5eb61793e28ca0314d53d93bb136e Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Fri, 8 Jan 2021 13:23:11 +0100 Subject: [PATCH] Update tinyusb to the latest upstream version --- components/tinyusb/additions/src/tinyusb.c | 7 +++---- components/tinyusb/tinyusb | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/components/tinyusb/additions/src/tinyusb.c b/components/tinyusb/additions/src/tinyusb.c index 967058d372..3ab7a80b8d 100644 --- a/components/tinyusb/additions/src/tinyusb.c +++ b/components/tinyusb/additions/src/tinyusb.c @@ -103,10 +103,9 @@ esp_err_t tinyusb_driver_install(const tinyusb_config_t *config) tusb_set_descriptor(descriptor, string_descriptor); - res = tusb_init(); - if (res != TUSB_ERROR_NONE) { - ESP_LOGE(TAG, "Can't initialize the TinyUSB stack. TinyUSB error: %d", res); - return res; + if (!tusb_init()) { + ESP_LOGE(TAG, "Can't initialize the TinyUSB stack."); + return ESP_FAIL; } #if !CONFIG_USB_DO_NOT_CREATE_TASK res = tusb_run_task(); diff --git a/components/tinyusb/tinyusb b/components/tinyusb/tinyusb index 6d66d6bb21..334e95fac5 160000 --- a/components/tinyusb/tinyusb +++ b/components/tinyusb/tinyusb @@ -1 +1 @@ -Subproject commit 6d66d6bb21f35aec8f7d00857862d3d025df80de +Subproject commit 334e95fac52a607150157ae5199a19e11f843982