From 862a82f35284eef20f757f800da013769ca82cc6 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 6 Aug 2019 19:42:02 -0400 Subject: Reset the Trinket before DFU. Resetting will put it in normal state no matter its previous state, so DFU from there will always work. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 2ef73a4..6d420d1 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,8 @@ cargo-build: $(OUTDIR)/$(APP): cargo-build flash: $(APP).bin + feather-cmd r + sleep 2 feather-cmd dfu sleep 2 $(BOSSAC) -R -e -w -v -o$(OFFSET) -p`./find-serial-port $(USBVID) $(USBPID)` $< -- cgit v1.2.3