Fix typo in code causing both CONFIG_USB_MOUSE and CONFIG_USB_KEYBOARD to be effectively disabled if either is disabled.
Signed-off-by: Kevin O'Connor kevin@koconnor.net --- src/hw/usb-hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hw/usb-hid.c b/src/hw/usb-hid.c index e94aa16..13f134c 100644 --- a/src/hw/usb-hid.c +++ b/src/hw/usb-hid.c @@ -109,7 +109,7 @@ usb_mouse_setup(struct usbdevice_s *usbdev int usb_hid_setup(struct usbdevice_s *usbdev) { - if (! CONFIG_USB_KEYBOARD || ! CONFIG_USB_MOUSE) + if (! CONFIG_USB_KEYBOARD && ! CONFIG_USB_MOUSE) return -1; dprintf(2, "usb_hid_setup %p\n", usbdev->defpipe);