moved reset routines down past where we define CATERINA

my understanding of recursively expanded variables wasn't correct
This commit is contained in:
Simon John 2013-07-03 09:29:34 +02:00
parent ae3e5c78ac
commit 14d491c3bd

View file

@ -447,25 +447,6 @@ else
$(call show_config_variable,USER_LIB_PATH,[USER])
endif
########################################################################
# Reset
#
ifndef RESET_CMD
ifneq ($(CATERINA),)
RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino --caterina \
$(ARD_RESET_OPTS) $(call get_arduino_port)
else
RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino \
$(ARD_RESET_OPTS) $(call get_arduino_port)
endif
endif
ifneq ($(CATERINA),)
ERROR_ON_LEONARDO = $(error On Leonardo, raw_xxx operation is not supported)
else
ERROR_ON_LEONARDO =
endif
########################################################################
# boards.txt parsing
@ -563,6 +544,27 @@ else
$(call show_config_variable,OBJDIR,[USER])
endif
########################################################################
# Reset
#
ifndef RESET_CMD
ifneq ($(CATERINA),)
RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino --caterina \
$(ARD_RESET_OPTS) $(call get_arduino_port)
else
RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino \
$(ARD_RESET_OPTS) $(call get_arduino_port)
endif
endif
ifneq ($(CATERINA),)
ERROR_ON_LEONARDO = $(error On Leonardo, raw_xxx operation is not supported)
else
ERROR_ON_LEONARDO =
endif
########################################################################
# Local sources
#