]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf14a.c
fix bug in pskdemod return value if no samples...
[proxmark3-svn] / client / cmdhf14a.c
index d1f8b36342c4feb2e3fe6b41379e1403e28aaa41..9a761864b3fbc984ef21d839b0db886a69aeb647 100644 (file)
@@ -144,7 +144,7 @@ int CmdHF14AReader(const char *Cmd)
        uint64_t select_status = resp.arg[0];           // 0: couldn't read, 1: OK, with ATS, 2: OK, no ATS
        
        if(select_status == 0) {
-               PrintAndLog("iso14443a card select failed");
+               if (Cmd[0] != 's') PrintAndLog("iso14443a card select failed");
                // disconnect
                c.arg[0] = 0;
                c.arg[1] = 0;
@@ -178,7 +178,7 @@ int CmdHF14AReader(const char *Cmd)
                        c.arg[2] = 0;
                        SendCommand(&c);
                        
-                       uint16_t tagT = GetHF14AMfU_Type();
+                       uint32_t tagT = GetHF14AMfU_Type();
                        ul_print_type(tagT, 0);
 
                        //reconnect for further tests
Impressum, Datenschutz