diff options
Diffstat (limited to 'device')
-rw-r--r-- | device/usb/mojo/type_converters.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/usb/mojo/type_converters.cc b/device/usb/mojo/type_converters.cc index a2daeaa..b7bfd7f 100644 --- a/device/usb/mojo/type_converters.cc +++ b/device/usb/mojo/type_converters.cc @@ -138,7 +138,7 @@ device::usb::EndpointInfoPtr TypeConverter<device::usb::EndpointInfoPtr, device::UsbEndpointDescriptor>:: Convert(const device::UsbEndpointDescriptor& endpoint) { device::usb::EndpointInfoPtr info = device::usb::EndpointInfo::New(); - info->endpoint_number = endpoint.address; + info->endpoint_number = endpoint.address & 0xf; info->direction = ConvertTo<device::usb::TransferDirection>(endpoint.direction); info->type = ConvertTo<device::usb::EndpointType>(endpoint.transfer_type); |