From 61500621bcceb9b210ee2191f257244bf80de474 Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Fri, 17 Feb 2017 14:48:19 -0500 Subject: [PATCH] @iceman1001 s idea to output failure report --- client/cmdlfem4x.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 1ecf64d5..531199c4 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -719,7 +719,12 @@ int CmdEM4x05ReadWord(const char *Cmd) { usePwd = true; PrintAndLog("Reading address %02u | password %08X", addr, pwd); } - return EM4x05ReadWord(addr, pwd, usePwd); + + int result = EM4x05ReadWord(addr, pwd, usePwd); + if (result == -1) + PrintAndLog("Read failed"); + + return result; } int usage_lf_em_dump(void) { -- 2.39.5