1
0

core: Fix 'make dfu' message

This commit is contained in:
tmk 2016-09-08 14:43:25 +09:00
parent e5acff0312
commit 4703afac2f

View File

@ -420,10 +420,13 @@ flip: $(TARGET).hex
batchisp -hardware usb -device $(MCU) -operation start reset 0 batchisp -hardware usb -device $(MCU) -operation start reset 0
dfu: $(TARGET).hex dfu: $(TARGET).hex
@echo -n dfu-programmer: waiting
@until dfu-programmer atmega32u4 get bootloader-version > /dev/null 2>&1; do \ @until dfu-programmer atmega32u4 get bootloader-version > /dev/null 2>&1; do \
echo -n "."; \ echo -n "."; \
sleep 1; \ sleep 1; \
done done
@echo
ifneq (, $(findstring 0.7, $(shell dfu-programmer --version 2>&1))) ifneq (, $(findstring 0.7, $(shell dfu-programmer --version 2>&1)))
dfu-programmer $(MCU) erase --force dfu-programmer $(MCU) erase --force
else else