summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2015-08-26 07:44:10 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2015-08-26 07:46:00 +0200
commiteb80e438189961ba61b0250490ec73a7e439dcc6 (patch)
tree9640521e01f0d457e54176ac95b8a1d449476512
parent1566e7012f6b9b69b2a36808caca001d34bd536e (diff)
downloadsecure-hid-eb80e438189961ba61b0250490ec73a7e439dcc6.tar.gz
secure-hid-eb80e438189961ba61b0250490ec73a7e439dcc6.tar.bz2
secure-hid-eb80e438189961ba61b0250490ec73a7e439dcc6.zip
Device driver/mouse: use correct endpoint type: INTERRUPT
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
-rw-r--r--src/usbh_driver_hid_mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usbh_driver_hid_mouse.c b/src/usbh_driver_hid_mouse.c
index 0a575f2..56278ef 100644
--- a/src/usbh_driver_hid_mouse.c
+++ b/src/usbh_driver_hid_mouse.c
@@ -218,7 +218,7 @@ static void read_mouse_in(void *drvdata)
packet.datalen = mouse->endpoint_in_maxpacketsize;
packet.endpoint_address = mouse->endpoint_in_address;
packet.endpoint_size_max = mouse->endpoint_in_maxpacketsize;
- packet.endpoint_type = USBH_EPTYP_BULK;
+ packet.endpoint_type = USBH_EPTYP_INTERRUPT;
packet.speed = mouse->usbh_device->speed;
packet.callback = event;
packet.callback_arg = mouse->usbh_device;