From f79a4803c58b2f6fec9e6ff663f33c611fd7264a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 29 Aug 2020 14:04:01 +0200 Subject: [PATCH] no printf --- client/src/cmdlfcotag.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/cmdlfcotag.c b/client/src/cmdlfcotag.c index d53a545dd..1ca5be432 100644 --- a/client/src/cmdlfcotag.c +++ b/client/src/cmdlfcotag.c @@ -97,14 +97,13 @@ static int CmdCOTAGRead(const char *Cmd) { uint8_t timeout = 3; while (!WaitForResponseTimeout(CMD_LF_COTAG_READ, &resp, 2000)) { timeout--; - printf("."); - fflush(stdout); - + PrintAndLogEx(NORMAL, "." NOLF); if (timeout == 0) { PrintAndLogEx(WARNING, "command execution time out"); return PM3_ETIMEOUT; } } + if (timeout != 3) PrintAndLogEx(NORMAL, "");