Skip to content

Commit

Permalink
Reboot wb32 devices after flashing (qmk#18323)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and ramonimbao committed Nov 28, 2022
1 parent ecf7199 commit 95af2a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platforms/chibios/flash.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ define EXEC_DFU_UTIL
$(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin
endef

WB32_DFU_UPDATER ?= wb32-dfu-updater_cli

define EXEC_WB32_DFU_UPDATER
if ! wb32-dfu-updater_cli -l | grep -q "Found DFU"; then \
Expand All @@ -34,7 +35,7 @@ define EXEC_WB32_DFU_UPDATER
done ;\
printf "\n" ;\
fi
wb32-dfu-updater_cli -D $(BUILD_DIR)/$(TARGET).bin
$(WB32_DFU_UPDATER) -D $(BUILD_DIR)/$(TARGET).bin && $(WB32_DFU_UPDATER) -R
endef

dfu-util: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter
Expand Down

0 comments on commit 95af2a5

Please sign in to comment.