Update cmdhw.c

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
Niel Nielsen authored and GitHub committed 2026-09-03 14:01:17 +02:00
1 parent 1e2faf0e6c
commit 8cb8e6d7c0
1 file changed
+1 -5
+1 -5
View File
@@ -2294,13 +2294,9 @@ static int CmdPM5QCTest(const char *Cmd) {
return PM3_SUCCESS;
}
void progressbar(long sent, long total, int style) {
static void progressbar(long sent, long total, int style) {
int percent = (int)((double)sent / total * 100);
// Use \r at the start to move the cursor back to the beginning of the line
printf("\rProgress: [%d%%]", percent);
// Force stdout to print immediately without waiting for a newline
fflush(stdout);
}