]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
@iceman1001 s idea to output failure report
authormarshmellow42 <marshmellowrf@gmail.com>
Fri, 17 Feb 2017 19:48:19 +0000 (14:48 -0500)
committermarshmellow42 <marshmellowrf@gmail.com>
Fri, 17 Feb 2017 19:48:19 +0000 (14:48 -0500)
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