hf 14b reader - cleanup

This commit is contained in:
iceman1001 2020-09-26 16:54:47 +02:00
parent e8b5ce9917
commit 3e67ad0b0f

View file

@ -797,7 +797,6 @@ static bool HF14B_Other_Reader(bool verbose) {
if (status == 0) { if (status == 0) {
PrintAndLogEx(SUCCESS, "\n14443-3b tag found:"); PrintAndLogEx(SUCCESS, "\n14443-3b tag found:");
PrintAndLogEx(SUCCESS, "unknown tag type answered to a 0x000b3f80 command ans:"); PrintAndLogEx(SUCCESS, "unknown tag type answered to a 0x000b3f80 command ans:");
PrintAndLogEx(SUCCESS, "%s", sprint_hex(resp.data.asBytes, 1));
switch_off_field_14b(); switch_off_field_14b();
return true; return true;
} else if (status > 0) { } else if (status > 0) {
@ -817,12 +816,11 @@ static bool HF14B_Other_Reader(bool verbose) {
return false; return false;
} }
status = resp.oldarg[0]; status = resp.oldarg[0];
PrintAndLogEx(INFO, "status %d", status); PrintAndLogEx(DEBUG, "status %d", status);
if (status == 0) { if (status == 0) {
PrintAndLogEx(SUCCESS, "\n14443-3b tag found:"); PrintAndLogEx(SUCCESS, "\n14443-3b tag found:");
PrintAndLogEx(SUCCESS, "Unknown tag type answered to a 0x0A command ans:"); PrintAndLogEx(SUCCESS, "Unknown tag type answered to a 0x0A command ans:");
PrintAndLogEx(SUCCESS, "%s", sprint_hex(resp.data.asBytes, 1));
switch_off_field_14b(); switch_off_field_14b();
return true; return true;
} else if (status > 0) { } else if (status > 0) {
@ -833,7 +831,6 @@ static bool HF14B_Other_Reader(bool verbose) {
return true; return true;
} }
data[0] = ISO14443B_RESET; data[0] = ISO14443B_RESET;
clearCommandBuffer(); clearCommandBuffer();
SendCommandMIX(CMD_HF_ISO14443B_COMMAND, flags, 1, 0, data, 1); SendCommandMIX(CMD_HF_ISO14443B_COMMAND, flags, 1, 0, data, 1);
@ -843,12 +840,11 @@ static bool HF14B_Other_Reader(bool verbose) {
return false; return false;
} }
status = resp.oldarg[0]; status = resp.oldarg[0];
PrintAndLogEx(INFO, "status %d", status); PrintAndLogEx(DEBUG, "status %d", status);
if (status == 0) { if (status == 0) {
PrintAndLogEx(SUCCESS, "\n14443-3b tag found:"); PrintAndLogEx(SUCCESS, "\n14443-3b tag found:");
PrintAndLogEx(SUCCESS, "Unknown tag type answered to a 0x0C command ans:"); PrintAndLogEx(SUCCESS, "Unknown tag type answered to a 0x0C command ans:");
PrintAndLogEx(SUCCESS, "%s", sprint_hex(resp.data.asBytes, 1));
switch_off_field_14b(); switch_off_field_14b();
return true; return true;
} else if (status > 0) { } else if (status > 0) {