From: Jun Wako Date: Thu, 23 Apr 2015 07:07:24 +0000 (+0900) Subject: Fix dfu-programmer parameters X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=bd24de44b71baa036d30da691f56f34744aa5fd5;p=max%2Ftmk_keyboard.git Fix dfu-programmer parameters --- diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index d0675663..a790f874 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk @@ -440,7 +440,11 @@ flip-ee: $(TARGET).hex $(TARGET).eep $(REMOVE) $(TARGET)eep.hex dfu-ee: $(TARGET).hex $(TARGET).eep - dfu-programmer $(MCU) eeprom-flash $(TARGET).eep +ifneq (, $(findstring 0.7, $(shell dfu-programmer --version 2>&1))) + dfu-programmer $(MCU) flash --eeprom $(TARGET).eep +else + dfu-programmer $(MCU) flash-eeprom $(TARGET).eep +endif dfu-programmer $(MCU) reset