HF15 cmds return codes and dropfield where needed

This commit is contained in:
unknown committed 2019-11-26 22:11:02 +02:00
1 parent 16e4cf9679
commit cef28ad241
3 files changed
+94 -65

No files matched your search

+1 -4
View File
@@ -100,13 +100,10 @@ int CmdHFSearch(const char *Cmd) {
PROMPT_CLEARLINE;
PrintAndLogEx(INPLACE, "Searching for ISO15693 tag...");
if (IfPm3Iso15693()) {
if (readHF15Uid(false) == 1) {
if (readHF15Uid(false)) {
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("ISO15693 tag") " found\n");
DropField();
return PM3_SUCCESS;
}
// until refactoring of ISO15693 cmds, this is needed.
DropField();
}
PROMPT_CLEARLINE;