mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-23 00:25:55 +02:00
Fixed erroneous file size correction
This commit is contained in:
parent
90652cdb75
commit
0c9dd55ec7
@ -649,7 +649,7 @@ int ingenic_program_nand(void *hndl, int cs, int start, int type, const char *fi
|
|||||||
if(tail) {
|
if(tail) {
|
||||||
tail = page_size - tail;
|
tail = page_size - tail;
|
||||||
|
|
||||||
file_size += page_size - tail;
|
file_size += tail;
|
||||||
}
|
}
|
||||||
|
|
||||||
int pages = file_size / page_size;
|
int pages = file_size / page_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user