Merge pull request #456 from merlokk/hfreaderfix

fixed bug with `hf search 14a`
This commit is contained in:
marshmellow42 2017-11-01 07:57:30 -04:00 committed by GitHub
commit 9d139870cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -663,7 +663,7 @@ int CmdHFList(const char *Cmd)
int CmdHFSearch(const char *Cmd){ int CmdHFSearch(const char *Cmd){
int ans = 0; int ans = 0;
PrintAndLog(""); PrintAndLog("");
ans = CmdHF14AReader("s"); ans = CmdHF14AInfo("s");
if (ans > 0) { if (ans > 0) {
PrintAndLog("\nValid ISO14443A Tag Found - Quiting Search\n"); PrintAndLog("\nValid ISO14443A Tag Found - Quiting Search\n");
return ans; return ans;

View file

@ -18,6 +18,7 @@ int CmdHF14A(const char *Cmd);
int CmdHF14AList(const char *Cmd); int CmdHF14AList(const char *Cmd);
int CmdHF14AMifare(const char *Cmd); int CmdHF14AMifare(const char *Cmd);
int CmdHF14AReader(const char *Cmd); int CmdHF14AReader(const char *Cmd);
extern int CmdHF14AInfo(const char *Cmd);
int CmdHF14ASim(const char *Cmd); int CmdHF14ASim(const char *Cmd);
int CmdHF14ASnoop(const char *Cmd); int CmdHF14ASnoop(const char *Cmd);
char* getTagInfo(uint8_t uid); char* getTagInfo(uint8_t uid);