mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-04 07:12:33 +01:00 
			
		
		
		
	Align usbasp flashing behaviour (#14928)
This commit is contained in:
		
							parent
							
								
									b827daf13d
								
							
						
					
					
						commit
						19b9e406dc
					
				@ -130,6 +130,15 @@ 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 \
 | 
				
			||||||
 | 
							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\
 | 
				
			||||||
 | 
								printf "." ;\
 | 
				
			||||||
 | 
								sleep $(BOOTLOADER_RETRY_TIME) ;\
 | 
				
			||||||
 | 
							done ;\
 | 
				
			||||||
 | 
							printf "\n" ;\
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
	$(AVRDUDE_PROGRAMMER) -p $(AVRDUDE_MCU) -c usbasp -U flash:w:$(BUILD_DIR)/$(TARGET).hex
 | 
						$(AVRDUDE_PROGRAMMER) -p $(AVRDUDE_MCU) -c usbasp -U flash:w:$(BUILD_DIR)/$(TARGET).hex
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user