Skip to content

Commit 3520a84

Browse files
committed
fix(usb): Use new tusb_init method
1 parent 0a55493 commit 3520a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void deinit_usb_hal() {
165165

166166
esp_err_t tinyusb_driver_install(const tinyusb_config_t *config) {
167167
init_usb_hal(config->external_phy);
168-
if (!tusb_init()) {
168+
if (!tusb_init(0, TUSB_ROLE_DEVICE)) {
169169
log_e("Can't initialize the TinyUSB stack.");
170170
return ESP_FAIL;
171171
}

0 commit comments

Comments
 (0)