From ff47a782f5c72e7bdf9432a67326439fefa5cd0e Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Fri, 17 May 2013 15:02:51 +1000 Subject: [PATCH] Remove hardcoded product names (all provided for in boards.txt) --- cores/arduino/USBCore.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp index 9a50bda..c46c75f 100644 --- a/cores/arduino/USBCore.cpp +++ b/cores/arduino/USBCore.cpp @@ -50,19 +50,9 @@ const u16 STRING_LANGUAGE[2] = { }; #ifndef USB_PRODUCT -// Use a hardcoded product name if none is provided -#if USB_PID == 0x8036 -#define USB_PRODUCT "Arduino Leonardo" -#elif USB_PID == 0x8037 -#define USB_PRODUCT "Arduino Micro" -#elif USB_PID == 0x803C -#define USB_PRODUCT "Arduino Esplora" -#elif USB_PID == 0x9208 -#define USB_PRODUCT "LilyPad USB" -#else +// If no product is provided, use USB IO Board #define USB_PRODUCT "USB IO Board" #endif -#endif const u8 STRING_PRODUCT[] PROGMEM = USB_PRODUCT;