summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-08-06 19:42:02 -0400
committerBrian Cully <bjc@kublai.com>2019-08-06 19:42:02 -0400
commit862a82f35284eef20f757f800da013769ca82cc6 (patch)
tree61456bb63c080bb5f9c25c7c0b543a882cedd6b3
parent268269beafa02510b676243630a1c40332e669c0 (diff)
downloadbleusb-862a82f35284eef20f757f800da013769ca82cc6.tar.gz
bleusb-862a82f35284eef20f757f800da013769ca82cc6.zip
Reset the Trinket before DFU.
Resetting will put it in normal state no matter its previous state, so DFU from there will always work.
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
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)` $<