From 56b0d3ad8a8077e39ca530f180ed8698631d0576 Mon Sep 17 00:00:00 2001 From: TT Date: Thu, 14 May 2020 07:20:29 +0900 Subject: [PATCH] env: insert wait after switching to dfu --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bec51b8..4d06148 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,10 @@ endif # Project, sources and paths # +# Dvice node to flash +DEVICE = /dev/cu.usbmodem401 +#DEVICE = /dev/ttyACM0 + # Define project name here PROJECT = ch @@ -225,6 +229,4 @@ flash: build/ch.bin dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D build/ch.bin dfu: - -@printf "reset dfu\r" >/dev/cu.usbmodem401 - - + -printf "reset dfu\r" >$(DEVICE) && sleep 1