Add Device.Manufacturer(), .Product() and .SerialNumber() (#14)
This commit is contained in:

committed by
zagrodzki

parent
1aaa100bdb
commit
757722bf8e
@@ -238,6 +238,9 @@ func (libusbImpl) getDeviceDesc(d *libusbDevice) (*DeviceDesc, error) {
|
||||
SubClass: Class(desc.bDeviceSubClass),
|
||||
Protocol: Protocol(desc.bDeviceProtocol),
|
||||
MaxControlPacketSize: int(desc.bMaxPacketSize0),
|
||||
iManufacturer: int(desc.iManufacturer),
|
||||
iProduct: int(desc.iProduct),
|
||||
iSerialNumber: int(desc.iSerialNumber),
|
||||
}
|
||||
// Enumerate configurations
|
||||
cfgs := make(map[int]ConfigDesc)
|
||||
|
Reference in New Issue
Block a user