Use proper MASK for endpoint direction.
This commit is contained in:
parent
0851eb7a32
commit
1877f8f41c
@ -274,8 +274,8 @@ public final class DescriptorUtils
|
||||
descriptor.bLength(),
|
||||
descriptor.bDescriptorType(),
|
||||
String.format("0x%02x", descriptor.bEndpointAddress() & 0xff),
|
||||
descriptor.bEndpointAddress() & 0xf,
|
||||
((descriptor.bEndpointAddress() & 0x80) == 0) ? ("OUT") : ("IN"),
|
||||
descriptor.bEndpointAddress() & 0x0f,
|
||||
((descriptor.bEndpointAddress() & LibUsb.ENDPOINT_IN) == 0) ? ("OUT") : ("IN"),
|
||||
descriptor.bmAttributes() & 0xff,
|
||||
getTransferTypeName(descriptor.bmAttributes()),
|
||||
getSynchTypeName(descriptor.bmAttributes()),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user