Skip to content

Commit

Permalink
fix: fail to load config from different version format
Browse files Browse the repository at this point in the history
  • Loading branch information
edy555 committed Feb 18, 2018
1 parent 5984649 commit 297276f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ checksum(const void *start, size_t len)
{
uint32_t *p = (uint32_t*)start;
uint32_t *tail = (uint32_t*)(start + len);
uint32_t value = 0;
uint32_t value = len;
while (p < tail)
value ^= *p++;
return value;
Expand Down

0 comments on commit 297276f

Please sign in to comment.