From 4703afac2fdfc50bd81afcd2ccadce71569fcf98 Mon Sep 17 00:00:00 2001 From: tmk Date: Thu, 8 Sep 2016 14:43:25 +0900 Subject: [PATCH] core: Fix 'make dfu' message --- tmk_core/rules.mk | 3 +++ 1 file changed, 3 insertions(+) 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