Merge pull request #283 from kbeckmann/kbeckmann/bios_increment_address

bios: Increment address when writing to flash
This commit is contained in:
enjoy-digital 2019-10-20 15:30:22 +02:00 committed by GitHub
commit b6d35c92ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ static void fw(char *addr, char *value, char *count)
return;
}
}
for (i=0;i<count2;i++) write_to_flash(addr2, (unsigned char *)&value2, 4);
for (i=0;i<count2;i++) write_to_flash(addr2 + i * 4, (unsigned char *)&value2, 4);
}
#endif