aboutsummaryrefslogtreecommitdiff
path: root/Arduino.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Arduino.mk')
-rw-r--r--Arduino.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/Arduino.mk b/Arduino.mk
index 9554f35..5b0af0f 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -628,8 +628,12 @@ ifeq ($(strip $(NO_CORE)),)
USB_VID = $(call PARSE_BOARD,$(BOARD_TAG),build.vid)
endif
+ # coping with 2-3 methods sparkfun use for usb.pid
ifndef USB_PID
- USB_PID = $(call PARSE_BOARD,$(BOARD_TAG),build.pid)
+ USB_PID := $(call PARSE_BOARD,$(BOARD_TAG),build.pid)
+ ifndef USB_PID
+ USB_PID := $(call PARSE_BOARD,$(BOARD_TAG),menu.(chip|cpu).$(BOARD_SUB).build.pid)
+ endif
endif
endif