From 69346852a6514a65eb9aa4f6f69c4f8d5bbf1e9d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 27 Apr 2018 16:49:34 +0200 Subject: [PATCH] chg: 'hf felica dumplite' - getfrombigbuf has now timeout --- client/cmdhffelica.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/cmdhffelica.c b/client/cmdhffelica.c index 74960bf9c..e19c910a7 100644 --- a/client/cmdhffelica.c +++ b/client/cmdhffelica.c @@ -391,6 +391,13 @@ int CmdHFFelicaDumpLite(const char *Cmd) { // only download data if there is any. if ( tracelen > 0 ) { GetFromBigBuf(trace, tracelen, 0); + + if ( !WaitForResponseTimeout(CMD_ACK, NULL, 2500) ) { + PrintAndLogEx(WARNING, "command execution time out"); + free(trace); + return 0; + } + PrintAndLogEx(SUCCESS, "Recorded Activity (trace len = %d bytes)", tracelen); print_hex_break(trace, tracelen, 32);