Skip to content

Commit

Permalink
[fix] dfu-programmer <0.7 doesn't support --force flag (qmk#10292)
Browse files Browse the repository at this point in the history
Fixes <qmk#10286>.
  • Loading branch information
Frenzie authored Sep 13, 2020
1 parent 410fdbc commit 0bd334b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tmk_core/avr.mk
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,14 @@ define EXEC_DFU
if [ "$(1)" ]; then \
$(DFU_PROGRAMMER) $(MCU) flash --force --eeprom $(QUANTUM_PATH)/split_common/$(1);\
fi; \
$(DFU_PROGRAMMER) $(MCU) flash --force $(BUILD_DIR)/$(TARGET).hex;\
else \
$(DFU_PROGRAMMER) $(MCU) erase; \
if [ "$(1)" ]; then \
$(DFU_PROGRAMMER) $(MCU) flash-eeprom $(QUANTUM_PATH)/split_common/$(1);\
fi; \
$(DFU_PROGRAMMER) $(MCU) flash $(BUILD_DIR)/$(TARGET).hex;\
fi; \
$(DFU_PROGRAMMER) $(MCU) flash --force $(BUILD_DIR)/$(TARGET).hex;\
$(DFU_PROGRAMMER) $(MCU) reset
endef

Expand Down

0 comments on commit 0bd334b

Please sign in to comment.