1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-23 04:28:58 +02:00

Fixed erroneous file size correction

This commit is contained in:
Sergey Gridassov 2010-12-10 17:48:09 +03:00
parent 90652cdb75
commit 0c9dd55ec7

View File

@ -649,7 +649,7 @@ int ingenic_program_nand(void *hndl, int cs, int start, int type, const char *fi
if(tail) {
tail = page_size - tail;
file_size += page_size - tail;
file_size += tail;
}
int pages = file_size / page_size;