Skip to content

Commit e5c240a

Browse files
committed
fix(usb): Update tinyusb init call
1 parent af40992 commit e5c240a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cores/esp32/esp32-hal-tinyusb.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ void deinit_usb_hal() {
174174
esp_err_t tinyusb_driver_install(const tinyusb_config_t *config) {
175175
init_usb_hal(config->external_phy);
176176
#if CONFIG_IDF_TARGET_ESP32P4
177-
if (!tud_init(1)) {
177+
if (!tusb_init(1, TUSB_ROLE_DEVICE)) {
178178
#else
179-
if (!tud_init(0)) {
179+
if (!tusb_init(0, TUSB_ROLE_DEVICE)) {
180180
#endif
181181
log_e("Can't initialize the TinyUSB stack.");
182182
return ESP_FAIL;

0 commit comments

Comments
 (0)