mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-18 01:46:09 +00:00
[fix] dfu-programmer <0.7 doesn't support --force flag (#10292)
Fixes <https://github.com/qmk/qmk_firmware/issues/10286>.
This commit is contained in:
parent
9e99a9b98c
commit
2b9f200a2a
1 changed files with 2 additions and 1 deletions
|
@ -122,13 +122,14 @@ define EXEC_DFU
|
||||||
if [ "$(1)" ]; then \
|
if [ "$(1)" ]; then \
|
||||||
$(DFU_PROGRAMMER) $(MCU) flash --force --eeprom $(QUANTUM_PATH)/split_common/$(1);\
|
$(DFU_PROGRAMMER) $(MCU) flash --force --eeprom $(QUANTUM_PATH)/split_common/$(1);\
|
||||||
fi; \
|
fi; \
|
||||||
|
$(DFU_PROGRAMMER) $(MCU) flash --force $(BUILD_DIR)/$(TARGET).hex;\
|
||||||
else \
|
else \
|
||||||
$(DFU_PROGRAMMER) $(MCU) erase; \
|
$(DFU_PROGRAMMER) $(MCU) erase; \
|
||||||
if [ "$(1)" ]; then \
|
if [ "$(1)" ]; then \
|
||||||
$(DFU_PROGRAMMER) $(MCU) flash-eeprom $(QUANTUM_PATH)/split_common/$(1);\
|
$(DFU_PROGRAMMER) $(MCU) flash-eeprom $(QUANTUM_PATH)/split_common/$(1);\
|
||||||
fi; \
|
fi; \
|
||||||
|
$(DFU_PROGRAMMER) $(MCU) flash $(BUILD_DIR)/$(TARGET).hex;\
|
||||||
fi; \
|
fi; \
|
||||||
$(DFU_PROGRAMMER) $(MCU) flash --force $(BUILD_DIR)/$(TARGET).hex;\
|
|
||||||
$(DFU_PROGRAMMER) $(MCU) reset
|
$(DFU_PROGRAMMER) $(MCU) reset
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue