Skip to content

Commit f1c96cb

Browse files
committed
[tinyusb] Fix speed option default for STM32
1 parent 80ed738 commit f1c96cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/hathach/module.lb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def prepare(module, options):
4545
EnumerationOption(name="speed",
4646
description="USB Port Speed",
4747
enumeration={"full": "fs", "high": "hs"},
48-
default="full",
48+
default="high" if options[":target"].has_driver("usb_otg_hs") else "full",
4949
dependencies=lambda s: ":platform:usb:{}s".format(s[0])))
5050

5151
module.add_submodule(TinyUsbDeviceModule())

0 commit comments

Comments
 (0)