populate MaxControlPacketSize
This commit is contained in:
@@ -233,6 +233,7 @@ func (libusbImpl) getDeviceDesc(d *libusbDevice) (*DeviceDesc, error) {
|
||||
Class: Class(desc.bDeviceClass),
|
||||
SubClass: Class(desc.bDeviceSubClass),
|
||||
Protocol: Protocol(desc.bDeviceProtocol),
|
||||
MaxControlPacketSize: int(desc.bMaxPacketSize0),
|
||||
}
|
||||
// Enumerate configurations
|
||||
cfgs := make(map[int]ConfigDesc)
|
||||
|
Reference in New Issue
Block a user