Fix dfu-programmer parameters

daktil_thumb_popravljen
Jun Wako 2015-04-23 16:07:24 +09:00
parent c412300536
commit bd24de44b7
1 changed files with 5 additions and 1 deletions

View 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