diff --git a/client/src/cmdhw.c b/client/src/cmdhw.c index 54e4e1528..7edab8c3b 100644 --- a/client/src/cmdhw.c +++ b/client/src/cmdhw.c @@ -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); }