Skip to content
Snippets Groups Projects
Commit ce3db96d authored by Dean Camera's avatar Dean Camera
Browse files

Make sure CRC value is pre-zeroed before reading from the XMEGA target device,...

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.
parent 3703d505
No related branches found
No related tags found
No related merge requests found
......@@ -174,6 +174,8 @@ void XMEGANVM_DisablePDI(void)
*/
bool XMEGANVM_GetMemoryCRC(const uint8_t CRCCommand, uint32_t* const CRCDest)
{
*CRCDest = 0;
/* Wait until the NVM controller is no longer busy */
if (!(XMEGANVM_WaitWhileNVMControllerBusy()))
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment