Skip to content

Commit 1a99be3

Browse files
projectguscmaglie
authored andcommitted
Remove hardcoded product names (all provided for in boards.txt)
1 parent 6abdeec commit 1a99be3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

hardware/arduino/avr/cores/arduino/USBCore.cpp

+1-11
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,9 @@ const u16 STRING_LANGUAGE[2] = {
5050
};
5151

5252
#ifndef USB_PRODUCT
53-
// Use a hardcoded product name if none is provided
54-
#if USB_PID == 0x8036
55-
#define USB_PRODUCT "Arduino Leonardo"
56-
#elif USB_PID == 0x8037
57-
#define USB_PRODUCT "Arduino Micro"
58-
#elif USB_PID == 0x803C
59-
#define USB_PRODUCT "Arduino Esplora"
60-
#elif USB_PID == 0x9208
61-
#define USB_PRODUCT "LilyPad USB"
62-
#else
53+
// If no product is provided, use USB IO Board
6354
#define USB_PRODUCT "USB IO Board"
6455
#endif
65-
#endif
6656

6757
const u8 STRING_PRODUCT[] PROGMEM = USB_PRODUCT;
6858

0 commit comments

Comments
 (0)