1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 10:15:19 +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;