]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfem4x.c
@iceman1001 s idea to output failure report
[proxmark3-svn] / client / cmdlfem4x.c
index 1ecf64d56cc1db22429a7b98a3eaea704b7146a7..531199c454ffde2a2aa025c7cbc467bb9d045c05 100644 (file)
@@ -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) {
Impressum, Datenschutz