From f3ed32b7c06aa49257712fdc8f7c621e2ef3ca8a Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 7 Feb 2009 00:11:22 +0000 Subject: [PATCH] Fix wrong usage of endpoint address. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29146 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/device/USBEndpoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/device/USBEndpoint.cpp b/src/kits/device/USBEndpoint.cpp index 11cda95ea2..c5120ba243 100644 --- a/src/kits/device/USBEndpoint.cpp +++ b/src/kits/device/USBEndpoint.cpp @@ -223,7 +223,7 @@ BUSBEndpoint::IsStalled() const uint16 status = 0; Device()->ControlTransfer(USB_REQTYPE_ENDPOINT_IN, USB_REQUEST_GET_STATUS, USB_FEATURE_ENDPOINT_HALT, - fDescriptor.endpoint_address & 0x0f, sizeof(status), &status); + fDescriptor.endpoint_address, sizeof(status), &status); return status != 0; } @@ -233,5 +233,5 @@ BUSBEndpoint::ClearStall() const { return Device()->ControlTransfer(USB_REQTYPE_ENDPOINT_OUT, USB_REQUEST_CLEAR_FEATURE, USB_FEATURE_ENDPOINT_HALT, - fDescriptor.endpoint_address & 0x0f, 0, NULL); + fDescriptor.endpoint_address, 0, NULL); }