From a34b9293e891e72a7eb44a7e484c8028d055853f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 29 Aug 2020 11:55:36 +0200 Subject: [PATCH] printf remove --- client/src/cmdhf14b.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/src/cmdhf14b.c b/client/src/cmdhf14b.c index 315ef6cd4..106fa0890 100644 --- a/client/src/cmdhf14b.c +++ b/client/src/cmdhf14b.c @@ -909,7 +909,7 @@ static int CmdHF14BDump(const char *Cmd) { req[1] = blocknum; clearCommandBuffer(); - SendCommandMIX(CMD_HF_ISO14443B_COMMAND, ISO14B_APPEND_CRC | ISO14B_RAW, 2, 0, req, sizeof(req)); + SendCommandMIX(CMD_HF_ISO14443B_COMMAND, ISO14B_APPEND_CRC | ISO14B_RAW, 2, 0, req, sizeof(req)); if (WaitForResponseTimeout(CMD_HF_ISO14443B_COMMAND, &resp, 2000)) { @@ -940,17 +940,16 @@ static int CmdHF14BDump(const char *Cmd) { blocknum = 0xFF; } - printf("."); - fflush(stdout); + PrintAndLogEx(NORMAL, "." NOLF); } } + PrintAndLogEx(NORMAL, ""); if (blocknum != 0xFF) { - PrintAndLogEx(NORMAL, "\n Dump failed"); + PrintAndLogEx(NORMAL, "Dump failed"); goto out; } - PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "block# | data | ascii"); PrintAndLogEx(NORMAL, "---------+--------------+----------");