Skip to content

Commit 251ce98

Browse files
authored
Merge pull request hathach#1586 from hathach/fix-TUD_OPT_HIGH_SPEED
fix issue with TUD_OPT_HIGH_SPEED
2 parents fd5bb6e + a219ba8 commit 251ce98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tusb_option.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ typedef int make_iso_compilers_happy;
223223
#define TUSB_OPT_DEVICE_ENABLED CFG_TUD_ENABLED
224224

225225
// highspeed support indicator
226-
#define TUD_OPT_HIGH_SPEED (CFG_TUD_MAX_SPEED ? CFG_TUD_MAX_SPEED : TUP_RHPORT_HIGHSPEED)
226+
#define TUD_OPT_HIGH_SPEED (CFG_TUD_MAX_SPEED ? (CFG_TUD_MAX_SPEED & OPT_MODE_HIGH_SPEED) : TUP_RHPORT_HIGHSPEED)
227227

228228
//------------- Roothub as Host -------------//
229229

0 commit comments

Comments
 (0)