Add support for rebooting a board already running kaleidoscope by calling "device.reset" with focus

pull/1181/head
Jesse Vincent 2 years ago
parent 4fd12cd79c
commit daeb7bf2c6
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -193,6 +193,8 @@ 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)
flash: ${HEX_FILE_PATH}
ifneq ($(flashing_instructions),)
$(info $(shell printf $(flashing_instructions)))
@ -203,6 +205,7 @@ endif
$(info When you're ready to proceed, press 'Enter'.)
$(info )
@$(shell read _)
$(QUIET) echo "device.reset" > $(_device_port)
$(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}" \

Loading…
Cancel
Save