From 9eb87245ba3d963e9e6e953a8ea5863d76676389 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 2 Jan 2017 14:12:48 +0200 Subject: [PATCH] usb: exclude hid_report_descriptor_debug from non-debug build (#135) --- firmware/usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/usb.c b/firmware/usb.c index e15dd4979..7691b1f74 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -80,6 +80,7 @@ static const uint8_t hid_report_descriptor[] = { 0xc0 // END_COLLECTION }; +#if DEBUG_LINK static const uint8_t hid_report_descriptor_debug[] = { 0x06, 0x01, 0xff, // USAGE_PAGE (Vendor Defined) 0x09, 0x01, // USAGE (1) @@ -98,6 +99,7 @@ static const uint8_t hid_report_descriptor_debug[] = { 0x91, 0x02, // OUTPUT (Data,Var,Abs) 0xc0 // END_COLLECTION }; +#endif static const uint8_t hid_report_descriptor_u2f[] = { 0x06, 0xd0, 0xf1, // USAGE_PAGE (FIDO Alliance)