Skip to content

Commit 393bc12

Browse files
authored
chore: fix the base usb configuration (jetkvm#610)
In reviewing the config.go settings for idProduct and bcdDevice are not formatted correctly. All examples on GitHub have 0x0104 and 0x0100 respectively. The idProduct value gets overwritten with valid values when you change the configuration (because they are correct in the options), but until you do the USB initialization will not be correct.
1 parent 6d13e1b commit 393bc12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/usbgadget/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ var defaultGadgetConfig = map[string]gadgetConfigItem{
3030
attrs: gadgetAttributes{
3131
"bcdUSB": "0x0200", // USB 2.0
3232
"idVendor": "0x1d6b", // The Linux Foundation
33-
"idProduct": "0104", // Multifunction Composite Gadget
34-
"bcdDevice": "0100",
33+
"idProduct": "0x0104", // Multifunction Composite Gadget
34+
"bcdDevice": "0x0100", // USB2
3535
},
3636
configAttrs: gadgetAttributes{
3737
"MaxPower": "250", // in unit of 2mA

0 commit comments

Comments
 (0)