From 8cb8e6d7c0eae78d00db3ce6c44559313822d38f Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Thu, 3 Sep 2026 14:01:17 +0200 Subject: [PATCH] Update cmdhw.c Signed-off-by: Niel Nielsen --- client/src/cmdhw.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); }