|
|
@ -191,9 +191,8 @@ endif
|
|
|
|
#TODO (arduino team) I'd love to do this with their json output
|
|
|
|
#TODO (arduino team) I'd love to do this with their json output
|
|
|
|
#but it's short some of the data we kind of need
|
|
|
|
#but it's short some of the data we kind of need
|
|
|
|
|
|
|
|
|
|
|
|
flashing_instructions = $(call _arduino_prop,build.flashing_instructions)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_device_port = $(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1)
|
|
|
|
flashing_instructions = $(call _arduino_prop,build.flashing_instructions)
|
|
|
|
|
|
|
|
|
|
|
|
flash: ${HEX_FILE_PATH}
|
|
|
|
flash: ${HEX_FILE_PATH}
|
|
|
|
ifneq ($(flashing_instructions),)
|
|
|
|
ifneq ($(flashing_instructions),)
|
|
|
@ -205,11 +204,11 @@ endif
|
|
|
|
$(info When you're ready to proceed, press 'Enter'.)
|
|
|
|
$(info When you're ready to proceed, press 'Enter'.)
|
|
|
|
$(info )
|
|
|
|
$(info )
|
|
|
|
@$(shell read _)
|
|
|
|
@$(shell read _)
|
|
|
|
# If we have a device serial port available, try to trigger a Kaliedoscope reset
|
|
|
|
# If we have a device serial port available, try to trigger a Kaliedoscope reset
|
|
|
|
ifneq ($(_device_port),)
|
|
|
|
-$(QUIET) DEVICE=$(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1) && \
|
|
|
|
-$(QUIET) DEVICE=$(_device_port) $(KALEIDOSCOPE_DIR)/bin/focus-send "device.reset"
|
|
|
|
[ -e $$DEVICE ] && \
|
|
|
|
sleep 2
|
|
|
|
$(KALEIDOSCOPE_DIR)/bin/focus-send "device.reset" && \
|
|
|
|
endif
|
|
|
|
sleep 2
|
|
|
|
$(QUIET) $(ARDUINO_CLI) upload --fqbn $(FQBN) \
|
|
|
|
$(QUIET) $(ARDUINO_CLI) upload --fqbn $(FQBN) \
|
|
|
|
$(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1 | xargs -n 1 echo "--port" ) \
|
|
|
|
$(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1 | xargs -n 1 echo "--port" ) \
|
|
|
|
--input-dir "${OUTPUT_PATH}" \
|
|
|
|
--input-dir "${OUTPUT_PATH}" \
|
|
|
|