From 92858d39d4b00a3bb2383265ffda9c0f09ae51d9 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 30 Oct 2017 15:08:20 +0100 Subject: [PATCH] fix: flushing some output.. --- client/flash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/flash.c b/client/flash.c index e5c60def7..ea1721502 100644 --- a/client/flash.c +++ b/client/flash.c @@ -417,7 +417,7 @@ int flash_write(flash_file_t *ctx) { uint32_t end = seg->start + length; fprintf(stdout, " 0x%08x..0x%08x [0x%x / %d blocks]", seg->start, end - 1, length, blocks); - + fflush(); int block = 0; uint8_t *data = seg->data; uint32_t baddr = seg->start; @@ -438,8 +438,10 @@ int flash_write(flash_file_t *ctx) { length -= block_size; block++; fprintf(stdout, "."); + fflush(); } fprintf(stdout, " OK\n"); + fflush(); } return 0; }