Skip to content

Commit 297276f

Browse files
committed
fix: fail to load config from different version format
1 parent 5984649 commit 297276f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flash.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ checksum(const void *start, size_t len)
7070
{
7171
uint32_t *p = (uint32_t*)start;
7272
uint32_t *tail = (uint32_t*)(start + len);
73-
uint32_t value = 0;
73+
uint32_t value = len;
7474
while (p < tail)
7575
value ^= *p++;
7676
return value;

0 commit comments

Comments
 (0)