We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d86ca1 + fde947b commit a8903d3Copy full SHA for a8903d3
src/tusb.c
@@ -68,7 +68,7 @@ bool tusb_rhport_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
68
.role = TUSB_ROLE_DEVICE,
69
.speed = TUD_OPT_HIGH_SPEED ? TUSB_SPEED_HIGH : TUSB_SPEED_FULL
70
};
71
- TU_ASSERT ( tud_rhport_init(rhport, &dev_init) );
+ TU_ASSERT ( tud_rhport_init(TUD_OPT_RHPORT, &dev_init) );
72
_tusb_rhport_role[TUD_OPT_RHPORT] = TUSB_ROLE_DEVICE;
73
#endif
74
0 commit comments