Actually use correct bootloader not found message (#6695)

This commit is contained in:
Drashna Jaelre 2019-09-07 16:55:18 -07:00 committed by fauxpark
parent 44fd317a87
commit 02f77e7215
2 changed files with 3 additions and 3 deletions

View file

@ -147,7 +147,7 @@ define EXEC_DFU
echo "Flashing '$(1)' for EE_HANDS split keyboard support." ;\ echo "Flashing '$(1)' for EE_HANDS split keyboard support." ;\
fi; \ fi; \
until $(DFU_PROGRAMMER) $(MCU) get bootloader-version; do\ until $(DFU_PROGRAMMER) $(MCU) get bootloader-version; do\
printf "$(MSG_FLASH_BOOTLOADER)" ;\ printf "$(MSG_BOOTLOADER_NOT_FOUND)" ;\
sleep 5 ;\ sleep 5 ;\
done; \ done; \
if $(DFU_PROGRAMMER) --version 2>&1 | $(GREP) -q 0.7 ; then\ if $(DFU_PROGRAMMER) --version 2>&1 | $(GREP) -q 0.7 ; then\
@ -252,7 +252,7 @@ define EXEC_BOOTLOADHID
# bootloadHid executable has no cross platform detect methods # bootloadHid executable has no cross platform detect methods
# so keep running bootloadHid if the output contains "The specified device was not found" # so keep running bootloadHid if the output contains "The specified device was not found"
until $(BOOTLOADHID_PROGRAMMER) -r $(BUILD_DIR)/$(TARGET).hex 2>&1 | tee /dev/stderr | grep -v "device was not found"; do\ until $(BOOTLOADHID_PROGRAMMER) -r $(BUILD_DIR)/$(TARGET).hex 2>&1 | tee /dev/stderr | grep -v "device was not found"; do\
printf "$(MSG_FLASH_BOOTLOADER)" ;\ printf "$(MSG_BOOTLOADER_NOT_FOUND)" ;\
sleep 5 ;\ sleep 5 ;\
done done
endef endef

View file

@ -236,7 +236,7 @@ qmk: $(BUILD_DIR)/$(TARGET).bin
define EXEC_DFU_UTIL define EXEC_DFU_UTIL
until $(DFU_UTIL) -l | grep -q "Found DFU"; do\ until $(DFU_UTIL) -l | grep -q "Found DFU"; do\
printf "$(MSG_FLASH_BOOTLOADER)" ;\ printf "$(MSG_BOOTLOADER_NOT_FOUND)" ;\
sleep 5 ;\ sleep 5 ;\
done done
$(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin $(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin