diff options
author | Jun Wako <wakojun@gmail.com> | 2015-04-23 16:07:24 +0900 |
---|---|---|
committer | Jun Wako <wakojun@gmail.com> | 2015-04-23 16:07:24 +0900 |
commit | bd24de44b71baa036d30da691f56f34744aa5fd5 (patch) | |
tree | fd5164b608d2ea2fa10e93d64d0ccc3bb4f9b494 /tmk_core/rules.mk | |
parent | c412300536a5bb9f5224d00864150e9963d59ba8 (diff) | |
download | firmware-bd24de44b71baa036d30da691f56f34744aa5fd5.tar.gz firmware-bd24de44b71baa036d30da691f56f34744aa5fd5.tar.bz2 firmware-bd24de44b71baa036d30da691f56f34744aa5fd5.zip |
Fix dfu-programmer parameters
Diffstat (limited to 'tmk_core/rules.mk')
-rw-r--r-- | tmk_core/rules.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index d06756638..a790f874b 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 |