From 564c9ae2b68afc0d8b0455fb9b9d2aba0ca6c574 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 9 Oct 2016 15:49:59 +0200 Subject: [PATCH] FIX: increased time-out to match 2.7sec it takes to write 256bytes. --- client/cmdhflegic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdhflegic.c b/client/cmdhflegic.c index b2d207e5..a68d29a7 100644 --- a/client/cmdhflegic.c +++ b/client/cmdhflegic.c @@ -1035,7 +1035,7 @@ int CmdLegicRestore(const char *Cmd){ clearCommandBuffer(); SendCommand(&c); - if (!WaitForResponseTimeout(CMD_ACK, &resp, 2000)) { + if (!WaitForResponseTimeout(CMD_ACK, &resp, 3000)) { PrintAndLog("command execution time out"); free(data); return 1; -- 2.39.2