Skip to content

Commit

Permalink
[fix] dfu-programmer <0.7 doesn't support --force flag
Browse files Browse the repository at this point in the history
Fixes <qmk#10286>.
  • Loading branch information
Frenzie committed Sep 11, 2020
1 parent 3d4f002 commit 766093d
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 766093d

Please sign in to comment.