Explorar o código

Fix dfu-programmer parameters

Jun Wako %!s(int64=10) %!d(string=hai) anos
pai
achega
bd24de44b7
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      tmk_core/rules.mk

+ 5 - 1
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