forked from mirrors/qmk_userspace
		
	avrdude: Version 7.2 changes the text output (#22235)
from "could not find USB device with" to "cannot find USB device with" This should fix issue #22234 Co-authored-by: Dominik Loidolt <dominik.loidolt@univie.ac.at>
This commit is contained in:
		
					parent
					
						
							
								e2e6b3dfd6
							
						
					
				
			
			
				commit
				
					
						fa1c1cbbee
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -130,10 +130,10 @@ avrdude-split-right: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware
 | 
				
			||||||
	$(call EXEC_AVRDUDE,eeprom-righthand.eep)
 | 
						$(call EXEC_AVRDUDE,eeprom-righthand.eep)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define EXEC_USBASP
 | 
					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)" ;\
 | 
							printf "$(MSG_BOOTLOADER_NOT_FOUND_QUICK_RETRY)" ;\
 | 
				
			||||||
		sleep $(BOOTLOADER_RETRY_TIME) ;\
 | 
							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 "." ;\
 | 
								printf "." ;\
 | 
				
			||||||
			sleep $(BOOTLOADER_RETRY_TIME) ;\
 | 
								sleep $(BOOTLOADER_RETRY_TIME) ;\
 | 
				
			||||||
		done ;\
 | 
							done ;\
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue