Fix in checksum calculation condition

This commit is contained in:
Pavel Burgr 2013-12-14 21:25:10 +01:00
parent 8835df1822
commit ce17cc2e2b
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ lpc11xx_flash_write(struct target_s *target, uint32_t dest, const uint8_t *src,
chunk_offset = 0; chunk_offset = 0;
/* if we are programming the vectors, calculate the magic number */ /* if we are programming the vectors, calculate the magic number */
if (dest == 0) { if (chunk * IAP_PGM_CHUNKSIZE == 0) {
uint32_t *w = (uint32_t *)(&flash_pgm.data[0]); uint32_t *w = (uint32_t *)(&flash_pgm.data[0]);
uint32_t sum = 0; uint32_t sum = 0;