Replace anonymous DeviceDesc field import with a named "Desc" field.
This commit is contained in:
@@ -45,7 +45,7 @@ func main() {
|
||||
fmt.Printf("%03d.%03d %s:%s %s\n", desc.Bus, desc.Address, desc.Vendor, desc.Product, usbid.Describe(desc))
|
||||
fmt.Printf(" Protocol: %s\n", usbid.Classify(desc))
|
||||
|
||||
// The configurations can be examined from the Descriptor, though they can only
|
||||
// The configurations can be examined from the DeviceDesc, though they can only
|
||||
// be set once the device is opened. All configuration references must be closed,
|
||||
// to free up the memory in libusb.
|
||||
for _, cfg := range desc.Configs {
|
||||
|
Reference in New Issue
Block a user