From: marshmellow42 Date: Fri, 17 Feb 2017 19:48:19 +0000 (-0500) Subject: @iceman1001 s idea to output failure report X-Git-Tag: v3.0.0~69^2~11 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/61500621bcceb9b210ee2191f257244bf80de474?hp=6980d66b054071c75dfa522ad36eda97a2556159 @iceman1001 s idea to output failure report --- 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) {