Skip to content

Commit

Permalink
reset calcCrc before loop
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepmistry committed Jul 9, 2019
1 parent 2949a51 commit 377017d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Flasher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ Flasher::verify(const char* filename, uint32_t& pageErrors, uint32_t& totalError

if (_samba.canChecksumBuffer())
{
calcCrc = 0;

for (uint32_t i = 0; i < fbytes; i++)
calcCrc = _samba.checksumCalc(bufferA[i], calcCrc);

Expand Down

0 comments on commit 377017d

Please sign in to comment.