summaryrefslogtreecommitdiff
path: root/src/tusb.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-10-17 15:56:12 +0700
committerhathach <[email protected]>2024-10-17 15:56:12 +0700
commitb5a4f18879110d9f5f8fe27c473818f2416e40e4 (patch)
tree48d8843c14e9803f98ffb9952fdeba420fff49f9 /src/tusb.c
parent8d9d3d9a2ac51378e7cb973628972e93ba356e1d (diff)
get hpri triggered
Diffstat (limited to 'src/tusb.c')
-rw-r--r--src/tusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tusb.c b/src/tusb.c
index e6f8055b7..6a0cc0805 100644
--- a/src/tusb.c
+++ b/src/tusb.c
@@ -77,6 +77,7 @@ bool tusb_rhport_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
// new API with explicit rhport and role
TU_ASSERT(rhport < TUP_USBIP_CONTROLLER_NUM && rh_init->role != TUSB_ROLE_INVALID);
+ _rhport_role[rhport] = rh_init->role;
#if CFG_TUD_ENABLED
if (rh_init->role == TUSB_ROLE_DEVICE) {
@@ -90,7 +91,6 @@ bool tusb_rhport_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
}
#endif
- _rhport_role[rhport] = rh_init->role;
return true;
}