bios: Increment address when writing to flash

This commit is contained in:
Konrad Beckmann 2019-10-19 22:58:24 +02:00
parent ef504f62af
commit ef78ae951f
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