From 6356e17eefd345c6b407e814a151c66254ce41a6 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Fri, 30 Sep 2016 10:53:45 -0700 Subject: g: The hid command is only useful for debugging And even that's a bit of a stretch. This entire endpoint will probably be deactivated until it's more useful. In the meantime, we can just leave the one little debug command for debug builds. BUG=chrome-os-partner:57408 BRANCH=none TEST=make buildall; try on Gru with and without CR50_DEV=1 Signed-off-by: Bill Richardson Change-Id: Id4c185fe66d52fa49fcbee6a549df41d297c41af Reviewed-on: https://chromium-review.googlesource.com/391045 Reviewed-by: Randall Spangler --- chip/g/usb_hid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chip/g/usb_hid.c b/chip/g/usb_hid.c index 11c82eacbf..a0ea412a61 100644 --- a/chip/g/usb_hid.c +++ b/chip/g/usb_hid.c @@ -135,6 +135,8 @@ static int hid_iface_request(struct usb_setup_packet *req) } USB_DECLARE_IFACE(USB_IFACE_HID, hid_iface_request); +#ifdef CR50_DEV +/* Just for debugging */ static int command_hid(int argc, char **argv) { uint8_t keycode = 0x0a; /* 'G' key */ @@ -156,3 +158,4 @@ static int command_hid(int argc, char **argv) DECLARE_CONSOLE_COMMAND(hid, command_hid, "[]", "test USB HID driver"); +#endif -- cgit v1.2.1