Fix the progress indicator for F2/F4 flash writing

pull/59/head
Uwe Bonnes 2012-02-02 22:49:33 +01:00
rodzic 02357a8b27
commit 1324914806
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1377,7 +1377,7 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, unsigned
/* show progress. writing procedure is slow
and previous errors are misleading */
const uint32_t pgnum = (off / PROGRESS_CHUNK_SIZE)+1;
const uint32_t pgcount = len / PROGRESS_CHUNK_SIZE;
const uint32_t pgcount = len / PROGRESS_CHUNK_SIZE +1;
fprintf(stdout, "Writing %ukB chunk %u out of %u\n", PROGRESS_CHUNK_SIZE/1024, pgnum, pgcount);
}
}