set USB_VID and USB_PID only for leonardo boards
This commit is contained in:
parent
184230fcf2
commit
adbd6532f9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue