From f5c5aaf017674cc3173b574a19feb234446c0491 Mon Sep 17 00:00:00 2001 From: Roman Leonov Date: Fri, 25 Oct 2024 14:38:09 +0200 Subject: [PATCH] fix(tusb.h): Fixed backward comatibility for port selection --- src/tusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tusb.c b/src/tusb.c index e6f8055b7..90ef6f1c8 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -57,7 +57,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) ); _rhport_role[TUD_OPT_RHPORT] = TUSB_ROLE_DEVICE; #endif