mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-22 06:40:58 +00:00
fix(tusb.h): Fixed backward comatibility for port selection
This commit is contained in:
parent
8b1e40c3e2
commit
f5c5aaf017
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user