From 2b7acd554a00f196394fdb91cd11a18e7981949f Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 12 Jul 2019 19:38:04 +0700 Subject: updating webusb with cdc --- examples/device/hid_generic_inout/src/usb_descriptors.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples/device/hid_generic_inout/src') diff --git a/examples/device/hid_generic_inout/src/usb_descriptors.c b/examples/device/hid_generic_inout/src/usb_descriptors.c index 516dab646..849c2be8a 100644 --- a/examples/device/hid_generic_inout/src/usb_descriptors.c +++ b/examples/device/hid_generic_inout/src/usb_descriptors.c @@ -92,10 +92,8 @@ enum ITF_NUM_TOTAL }; -enum -{ - CONFIG_TOTAL_LEN = TUD_CONFIG_DESC_LEN + TUD_HID_INOUT_DESC_LEN -}; + +#define CONFIG_TOTAL_LEN (TUD_CONFIG_DESC_LEN + TUD_HID_INOUT_DESC_LEN) // Use Endpoint 2 instead of 1 due to NXP MCU // LPC 17xx and 40xx endpoint type (bulk/interrupt/iso) are fixed by its number -- cgit v1.3.1