Replace octal values with hex values to fix erroneous USB device descriptor values.

This commit is contained in:
David Zielezna 2025-02-04 08:46:27 +11:00
parent 8ffe66a1bc
commit c31d2eb0f6
1 changed files with 2 additions and 2 deletions

4
usb.go
View File

@ -82,8 +82,8 @@ func writeGadgetConfig() error {
err = writeGadgetAttrs(kvmGadgetPath, [][]string{ err = writeGadgetAttrs(kvmGadgetPath, [][]string{
{"bcdUSB", "0x0200"}, //USB 2.0 {"bcdUSB", "0x0200"}, //USB 2.0
{"idVendor", "0x1d6b"}, //The Linux Foundation {"idVendor", "0x1d6b"}, //The Linux Foundation
{"idProduct", "0104"}, //Multifunction Composite Gadget¬ {"idProduct", "0x0104"}, //Multifunction Composite Gadget¬
{"bcdDevice", "0100"}, {"bcdDevice", "0x0100"},
}) })
if err != nil { if err != nil {
return err return err