From 6f11d89152ea274357afad9f621854d1f38bbf00 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 25 May 2022 13:48:19 -0700 Subject: [PATCH] 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 --- etc/makefiles/sketch.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/makefiles/sketch.mk b/etc/makefiles/sketch.mk index 98b01b42..286ea89f 100644 --- a/etc/makefiles/sketch.mk +++ b/etc/makefiles/sketch.mk @@ -208,6 +208,7 @@ endif # If we have a device serial port available, try to trigger a Kaliedoscope reset ifneq ($(_device_port),) $(QUIET) echo "device.reset" > $(_device_port) + sleep 2 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" ) \