Skip to content

Commit

Permalink
avrdude: Version 7.2 changes the text output (qmk#22235)
Browse files Browse the repository at this point in the history
from "could not find USB device with" to "cannot find USB device with"
This should fix issue qmk#22234

Co-authored-by: Dominik Loidolt <dominik.loidolt@univie.ac.at>
  • Loading branch information
2 people authored and Lorenzo Castoldi committed Dec 27, 2023
1 parent 089f26c commit 94566b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/avr/flash.mk
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ avrdude-split-right: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware
$(call EXEC_AVRDUDE,eeprom-righthand.eep)

define EXEC_USBASP
if $(AVRDUDE_PROGRAMMER) -p $(AVRDUDE_MCU) -c usbasp 2>&1 | grep -q "could not find USB device with"; then \
if $(AVRDUDE_PROGRAMMER) -p $(AVRDUDE_MCU) -c usbasp 2>&1 | grep -q "\(could not\|cannot\) find USB device with"; then \
printf "$(MSG_BOOTLOADER_NOT_FOUND_QUICK_RETRY)" ;\
sleep $(BOOTLOADER_RETRY_TIME) ;\
until $(AVRDUDE_PROGRAMMER) -p $(AVRDUDE_MCU) -c usbasp 2>&1 | (! grep -q "could not find USB device with"); do\
until $(AVRDUDE_PROGRAMMER) -p $(AVRDUDE_MCU) -c usbasp 2>&1 | (! grep -q "\(could not\|cannot\) find USB device with"); do\
printf "." ;\
sleep $(BOOTLOADER_RETRY_TIME) ;\
done ;\
Expand Down

0 comments on commit 94566b2

Please sign in to comment.