diff options
| author | Andreas Lohr <andr3as.lohr@gmail.com> | 2012-10-07 10:28:10 +0200 |
|---|---|---|
| committer | Andreas Lohr <andr3as.lohr@gmail.com> | 2012-10-07 10:28:10 +0200 |
| commit | adbd6532f9877b646d41f039cc1fd4cdd787d54b (patch) | |
| tree | f9cd633111c396178a21f92b0f4d31a73fb60814 | |
| parent | 184230fcf2ac9075fee642be8948d406913cb7df (diff) | |
set USB_VID and USB_PID only for leonardo boards
| -rw-r--r-- | arduino-mk/Arduino.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 09819ac..450e482 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -401,6 +401,7 @@ ifndef F_CPU F_CPU = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.f_cpu) endif +ifeq ($(VARIANT),leonardo) # USB IDs for the Leonardo ifndef USB_VID USB_VID = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.vid) @@ -409,6 +410,7 @@ endif ifndef USB_PID USB_PID = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.pid) endif +endif # normal programming info ifndef AVRDUDE_ARD_PROGRAMMER |
