|
|
|
@ -193,7 +193,7 @@ endif
|
|
|
|
|
|
|
|
|
|
flashing_instructions = $(call _arduino_prop,build.flashing_instructions)
|
|
|
|
|
|
|
|
|
|
_device_port = $(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1 | xargs -n 1)
|
|
|
|
|
_device_port = $(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1)
|
|
|
|
|
|
|
|
|
|
flash: ${HEX_FILE_PATH}
|
|
|
|
|
ifneq ($(flashing_instructions),)
|
|
|
|
@ -205,7 +205,10 @@ endif
|
|
|
|
|
$(info When you're ready to proceed, press 'Enter'.)
|
|
|
|
|
$(info )
|
|
|
|
|
@$(shell read _)
|
|
|
|
|
# If we have a device serial port available, try to trigger a Kaliedoscope reset
|
|
|
|
|
ifneq ($(_device_port),)
|
|
|
|
|
$(QUIET) echo "device.reset" > $(_device_port)
|
|
|
|
|
endif
|
|
|
|
|
$(QUIET) $(ARDUINO_CLI) upload --fqbn $(FQBN) \
|
|
|
|
|
$(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1 | xargs -n 1 echo "--port" ) \
|
|
|
|
|
--input-dir "${OUTPUT_PATH}" \
|
|
|
|
|