diff --git a/src/tusb.c b/src/tusb.c index a516cb9a17..c6dc50151d 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -68,7 +68,7 @@ bool tusb_rhport_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) { .role = TUSB_ROLE_DEVICE, .speed = TUD_OPT_HIGH_SPEED ? TUSB_SPEED_HIGH : TUSB_SPEED_FULL }; - TU_ASSERT ( tud_rhport_init(rhport, &dev_init) ); + TU_ASSERT ( tud_rhport_init(TUD_OPT_RHPORT, &dev_init) ); _tusb_rhport_role[TUD_OPT_RHPORT] = TUSB_ROLE_DEVICE; #endif