core: Fix 'make dfu' message
This commit is contained in:
parent
e5acff0312
commit
4703afac2f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user