mirror of
https://github.com/marqs85/ossc.git
synced 2025-02-05 12:33:24 +00:00
fix profile load not reading all data
This commit is contained in:
parent
4c1b211641
commit
687905780e
@ -193,8 +193,8 @@ int read_userdata(alt_u8 entry, int dry_run)
|
||||
if (vm_to_read >= PAGESIZE-pageoffset) {
|
||||
memcpy((char*)video_modes+dstoffset, databuf+pageoffset, PAGESIZE-pageoffset);
|
||||
dstoffset += PAGESIZE-pageoffset;
|
||||
pageoffset = 0;
|
||||
vm_to_read -= PAGESIZE-pageoffset;
|
||||
pageoffset = 0;
|
||||
pageno++;
|
||||
// check
|
||||
read_flash(USERDATA_OFFSET+(entry*SECTORSIZE)+pageno*PAGESIZE, PAGESIZE, databuf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user