From f5e3af6472bad51f3de9d6f5106e63828e9f4cea Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 10 Nov 2026 11:26:18 +0700 Subject: [PATCH] hw fpga config: print the transfer progress in place The progress line was printed once per chunk, about 55 lines for a PM5 bitstream. Print it in place and end the line once the transfer is done. Co-Authored-By: Claude Opus 5.5 --- client/src/cmdfpga.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/cmdfpga.c b/client/src/cmdfpga.c index 76830373a..907858a98 100644 --- a/client/src/cmdfpga.c +++ b/client/src/cmdfpga.c @@ -102,8 +102,9 @@ static int CmdConfigFpga(const char *Cmd) { } offset += chunk_size; // Print progress - PrintAndLogEx(INFO, "Sent "_YELLOW_("%zu")" bytes, progress: "_YELLOW_("%.2f%%"), chunk_size, (offset / (float)datalen) * 100); + PrintAndLogEx(INPLACE, "Sent "_YELLOW_("%zu")" bytes, progress: "_YELLOW_("%.2f%%"), chunk_size, (offset / (float)datalen) * 100); } + PrintAndLogEx(NORMAL, ""); PrintAndLogEx(SUCCESS, "FPGA configuration transfer complete!");