Make sure CRC value is pre-zeroed before reading from the XMEGA target device, to...
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 15 Apr 2012 19:15:35 +0000 (19:15 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 15 Apr 2012 19:15:35 +0000 (19:15 +0000)
Projects/AVRISP-MKII/Lib/XPROG/XMEGANVM.c

index 97154ea..b782475 100644 (file)
@@ -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;