diff --git a/Arduino.mk b/Arduino.mk index 014f69b..40c4b5e 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -618,6 +618,14 @@ ifeq ($(strip $(NO_CORE)),) endif endif + ifndef MONITOR_PORT + MONITOR_PORT := $(call PARSE_BOARD,$(BOARD_TAG),upload.port) + ifndef MONITOR_PORT + # might be a submenu + MONITOR_PORT := $(call PARSE_BOARD,$(BOARD_TAG),menu.cpu.$(BOARD_SUB).upload.port) + endif + endif + ifndef AVRDUDE_ARD_BAUDRATE AVRDUDE_ARD_BAUDRATE := $(call PARSE_BOARD,$(BOARD_TAG),upload.speed) ifndef AVRDUDE_ARD_BAUDRATE