From ced062988bf0df175e54b77b658132685100b350 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Tue, 13 Oct 2015 15:13:31 +0200 Subject: [USB] use plugged modules name to create iSerial field --- cores/arduino/USBDesc.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cores/arduino/USBDesc.h') diff --git a/cores/arduino/USBDesc.h b/cores/arduino/USBDesc.h index 4b9cf66..c0dce07 100644 --- a/cores/arduino/USBDesc.h +++ b/cores/arduino/USBDesc.h @@ -24,6 +24,8 @@ #define USB_ENDPOINTS 5 // AtMegaxxU2 #endif +#define ISERIAL_MAX_LEN 20 + #define CDC_INTERFACE_COUNT 2 #define CDC_ENPOINT_COUNT 3 @@ -39,6 +41,6 @@ #define CDC_RX CDC_ENDPOINT_OUT #define CDC_TX CDC_ENDPOINT_IN -#define IMANUFACTURER 1 -#define IPRODUCT 2 - +#define IMANUFACTURER 1 +#define IPRODUCT 2 +#define ISERIAL 3 \ No newline at end of file -- cgit v1.2.3-18-g5258