From 406ac425028bd0ea5f01555521ef05eee84b0825 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 3 May 2012 22:05:32 +0000 Subject: [PATCH] Display proper final page write count for 32L --- src/stlink-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stlink-common.c b/src/stlink-common.c index 08bd0bb..a4e2a53 100644 --- a/src/stlink-common.c +++ b/src/stlink-common.c @@ -1323,7 +1323,7 @@ int stm32l1_write_half_pages(stlink_t *sl, stm32_addr_t addr, uint8_t* base, uns if (sl->verbose >= 1) { /* show progress. writing procedure is slow and previous errors are misleading */ - fprintf(stdout, "\r%3u/%u halfpages written", count, num_half_pages); + fprintf(stdout, "\r%3u/%u halfpages written", count + 1, num_half_pages); fflush(stdout); } while ((stlink_read_debug32(sl, STM32L_FLASH_SR) & (1 << 0)) != 0) { -- 2.47.2