mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	Make sure CRC value is pre-zeroed before reading from the XMEGA target device, to prevent corrupt data from being returned to the host in the AVRISP-MKII Clone project.
This commit is contained in:
		
							parent
							
								
									3703d50580
								
							
						
					
					
						commit
						ce3db96d9a
					
				| @ -174,6 +174,8 @@ void XMEGANVM_DisablePDI(void) | |||||||
|  */ |  */ | ||||||
| bool XMEGANVM_GetMemoryCRC(const uint8_t CRCCommand, uint32_t* const CRCDest) | bool XMEGANVM_GetMemoryCRC(const uint8_t CRCCommand, uint32_t* const CRCDest) | ||||||
| { | { | ||||||
|  | 	*CRCDest = 0; | ||||||
|  | 
 | ||||||
| 	/* Wait until the NVM controller is no longer busy */ | 	/* Wait until the NVM controller is no longer busy */ | ||||||
| 	if (!(XMEGANVM_WaitWhileNVMControllerBusy())) | 	if (!(XMEGANVM_WaitWhileNVMControllerBusy())) | ||||||
| 	  return false; | 	  return false; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera