diff options
Diffstat (limited to 'tmk_core/chibios.mk')
| -rw-r--r-- | tmk_core/chibios.mk | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk index cdf9ba649..97299b7d3 100644 --- a/tmk_core/chibios.mk +++ b/tmk_core/chibios.mk | |||
| @@ -341,10 +341,15 @@ ST_LINK_CLI ?= st-link_cli | |||
| 341 | ST_FLASH ?= st-flash | 341 | ST_FLASH ?= st-flash |
| 342 | 342 | ||
| 343 | define EXEC_DFU_UTIL | 343 | define EXEC_DFU_UTIL |
| 344 | until $(DFU_UTIL) -l | grep -q "Found DFU"; do\ | 344 | if ! $(DFU_UTIL) -l | grep -q "Found DFU"; then \ |
| 345 | printf "$(MSG_BOOTLOADER_NOT_FOUND)" ;\ | 345 | printf "$(MSG_BOOTLOADER_NOT_FOUND_QUICK_RETRY)" ;\ |
| 346 | sleep 5 ;\ | 346 | sleep $(BOOTLOADER_RETRY_TIME) ;\ |
| 347 | done | 347 | while ! $(DFU_UTIL) -l | grep -q "Found DFU"; do \ |
| 348 | printf "." ;\ | ||
| 349 | sleep $(BOOTLOADER_RETRY_TIME) ;\ | ||
| 350 | done ;\ | ||
| 351 | printf "\n" ;\ | ||
| 352 | fi | ||
| 348 | $(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin | 353 | $(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin |
| 349 | endef | 354 | endef |
| 350 | 355 | ||
