aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-05-01 22:45:56 -0400
committerKevin O'Connor <kevin@koconnor.net>2010-05-01 22:45:56 -0400
commite5cd9458217af2a0506c8e9dc56e548227ca8418 (patch)
tree36f9febae10865f9e4894a1a4be17867922b04b9
parent0e88576feb7c577d2e6d3cda469f751db962a380 (diff)
downloadseabios-e5cd9458217af2a0506c8e9dc56e548227ca8418.tar.gz
Fix error causing USB HID "boot" protocol to not be enabled.
To enable the "boot" protocol wValue must be 0, not 1.
-rw-r--r--src/usb-hid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usb-hid.c b/src/usb-hid.c
index 2a952286..b88d684f 100644
--- a/src/usb-hid.c
+++ b/src/usb-hid.c
@@ -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;