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