diff options
| author | Roman Leonov <[email protected]> | 2024-10-25 14:38:09 +0200 |
|---|---|---|
| committer | Roman Leonov <[email protected]> | 2024-11-07 13:28:55 +0100 |
| commit | f5c5aaf017674cc3173b574a19feb234446c0491 (patch) | |
| tree | 38a6b0b0016e7e0f0aa69fb898c550e54a606fb8 /src | |
| parent | 8b1e40c3e2447de5b4a86bbcdcc0344946a4793d (diff) | |
fix(tusb.h): Fixed backward comatibility for port selection
Diffstat (limited to 'src')
| -rw-r--r-- | src/tusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
