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 <noreply@anthropic.com>
This commit is contained in:
iceman1001andClaude Opus 5.5 committed 2026-11-10 11:26:18 +07:00
1 parent 63d3f09726
commit f5e3af6472
1 file changed
+2 -1
+2 -1
View File
@@ -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!");