From 626be8413719a94937a95e4d52ceabf87ffb6cff Mon Sep 17 00:00:00 2001 From: NicoHood Date: Sun, 8 Nov 2015 19:09:23 +0100 Subject: [PATCH] Fixed RawHID linux send function. --- extras/rawhid/hid_LINUX.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/rawhid/hid_LINUX.c b/extras/rawhid/hid_LINUX.c index 8e98113..799797e 100644 --- a/extras/rawhid/hid_LINUX.c +++ b/extras/rawhid/hid_LINUX.c @@ -144,7 +144,7 @@ int rawhid_send(int num, void *buf, int len, int timeout) if (hid->ep_out) { return usb_interrupt_write(hid->usb, hid->ep_out, buf, len, timeout); } else { - return usb_control_msg(hid->usb, 0x21, 9, 0, hid->iface, buf, len, timeout); + return usb_control_msg(hid->usb, 0x21, 9, 0x0200, hid->iface, buf, len, timeout); } }