]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix dfu-programmer parameters
authorJun Wako <wakojun@gmail.com>
Thu, 23 Apr 2015 07:07:24 +0000 (16:07 +0900)
committerJun Wako <wakojun@gmail.com>
Thu, 23 Apr 2015 07:07:24 +0000 (16:07 +0900)
tmk_core/rules.mk

index d06756638c32a5e2692cb1b77f040c56171cd1b2..a790f874bc9c93eb8d0fb3add10a177753767706 100644 (file)
@@ -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