Skip to content

Commit

Permalink
fix(tusb.h): Fixed backward comatibility for port selection
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-jam committed Nov 7, 2024
1 parent e018912 commit 0326fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0326fc5

Please sign in to comment.