aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorAngus Gratton <angus@freetronics.com>2013-05-17 15:02:51 +1000
committerCristian Maglie <c.maglie@bug.st>2013-07-17 14:38:05 +0200
commitff47a782f5c72e7bdf9432a67326439fefa5cd0e (patch)
tree0e66d2b8e442eeb0287d5a0e8e386042f69adf3a /cores/arduino
parent0340b90366350b61983a3619805f65539fabbfc8 (diff)
Remove hardcoded product names (all provided for in boards.txt)
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/USBCore.cpp12
1 files changed, 1 insertions, 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;