If we're using the focus command to reboot to the bootloader, we need to

insert a brief pause or dfu-util may beat the keyboard to dfu mode
pull/1189/head
Jesse Vincent 3 years ago
parent 21a67ae565
commit 6f11d89152
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -208,6 +208,7 @@ endif
# 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),) ifneq ($(_device_port),)
$(QUIET) echo "device.reset" > $(_device_port) $(QUIET) echo "device.reset" > $(_device_port)
sleep 2
endif endif
$(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" ) \

Loading…
Cancel
Save