From d1363592f2c6d65c41ae89bb14f55d05cdf02e5f Mon Sep 17 00:00:00 2001 From: Simon John Date: Thu, 1 Jun 2017 19:22:28 +0100 Subject: Fix autodetection of USB_PID on SparkFun's new ProMicro core Remove use of tilde in documentation as ~ doesn't work, use $(HOME) instead --- Arduino.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Arduino.mk') 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 -- cgit v1.2.3