Fix error causing USB HID "boot" protocol to not be enabled.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 2 May 2010 02:45:56 +0000 (22:45 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 2 May 2010 02:45:56 +0000 (22:45 -0400)
To enable the "boot" protocol wValue must be 0, not 1.

src/usb-hid.c

index 2a952286983ff0b2de97a91801526d0271c627be..b88d684f483b6c9518b06a870c01dc106d0cb56e 100644 (file)
@@ -61,7 +61,7 @@ usb_kbd_init(struct usb_pipe *pipe, struct usb_endpoint_descriptor *epdesc)
         return -1;
 
     // Enable "boot" protocol.
-    int ret = set_protocol(pipe, 1);
+    int ret = set_protocol(pipe, 0);
     if (ret)
         return -1;
     // Periodically send reports to enable key repeat.
@@ -90,7 +90,7 @@ usb_mouse_init(struct usb_pipe *pipe, struct usb_endpoint_descriptor *epdesc)
         return -1;
 
     // Enable "boot" protocol.
-    int ret = set_protocol(pipe, 1);
+    int ret = set_protocol(pipe, 0);
     if (ret)
         return -1;