mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	Fixed AVRISP-MKII Clone timing out on long programming commands such as programming the EEPROM on an ATMEGA8 (thanks to Martin Kelling).
This commit is contained in:
		
							parent
							
								
									401ff1cef1
								
							
						
					
					
						commit
						956f9e3709
					
				| @ -49,6 +49,7 @@ | |||||||
|   *   - Fixed AVRISP-MKII Clone compile warning on AVR8 U4 targets even when NO_VTARGET_DETECT is enabled |   *   - Fixed AVRISP-MKII Clone compile warning on AVR8 U4 targets even when NO_VTARGET_DETECT is enabled | ||||||
|   *   - Fixed AVRISP-MKII Clone failing to start application firmware once a TPI programming session is exited |   *   - Fixed AVRISP-MKII Clone failing to start application firmware once a TPI programming session is exited | ||||||
|   *   - Fixed DFU class bootloader not resetting the LED pins as high impedance inputs when a software jump to the user applications is requested |   *   - Fixed DFU class bootloader not resetting the LED pins as high impedance inputs when a software jump to the user applications is requested | ||||||
|  |   *   - Fixed AVRISP-MKII Clone timing out on long programming commands such as programming the EEPROM on an ATMEGA8 (thanks to Martin Kelling) | ||||||
|   * |   * | ||||||
|   *  \section Sec_ChangeLog111009 Version 111009 |   *  \section Sec_ChangeLog111009 Version 111009 | ||||||
|   *  <b>New:</b> |   *  <b>New:</b> | ||||||
|  | |||||||
| @ -357,6 +357,9 @@ uint8_t ISPTarget_WaitForProgComplete(const uint8_t ProgrammingMode, | |||||||
| 			break; | 			break; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	/* Program complete - reset timeout */ | ||||||
|  | 	wdt_reset(); | ||||||
|  | 
 | ||||||
| 	return ProgrammingStatus; | 	return ProgrammingStatus; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -155,6 +155,9 @@ uint8_t XPROGTarget_ReceiveByte(void) | |||||||
| 	/* Wait until a byte has been received before reading */ | 	/* Wait until a byte has been received before reading */ | ||||||
| 	while (!(UCSR1A & (1 << RXC1)) && !(TimeoutExpired)); | 	while (!(UCSR1A & (1 << RXC1)) && !(TimeoutExpired)); | ||||||
| 
 | 
 | ||||||
|  | 	/* Byte of data received - reset the timeout */ | ||||||
|  | 	wdt_reset(); | ||||||
|  | 
 | ||||||
| 	return UDR1; | 	return UDR1; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera