diff --git a/build/targets.device.mak b/build/targets.device.mak index e743b80d6..9190e1f6d 100644 --- a/build/targets.device.mak +++ b/build/targets.device.mak @@ -36,9 +36,9 @@ products += $(patsubst %.$(EXE),%.map,$(filter %.$(EXE),$(products))) @echo "DFU $@" @echo "INFO About to flash your device. Please plug your device to your computer" @echo " using an USB cable and press the RESET button the back of your device." - @until dfu-util -l | grep "Internal Flash" > /dev/null 2>&1; do sleep 1;done + @until dfu-util -l | grep "Flash" > /dev/null 2>&1; do sleep 1;done @echo "DFU $@" - @dfu-util -i 0 -a 0 -s 0x08000000:leave -D $< + $(Q) dfu-util -i 0 -a 0 -s 0x08000000:leave -D $< .PHONY: openocd openocd: