This commit is contained in:
iceman1001 2022-07-07 22:57:36 +02:00
commit 367c84bce3

View file

@ -521,6 +521,10 @@ int read_texkom_uid(bool loop, bool verbose) {
// decoding code // decoding code
if (card.tcode[0] == 0xff && card.tcode[1] == 0xff) { if (card.tcode[0] == 0xff && card.tcode[1] == 0xff) {
if (loop == false) {
PrintAndLogEx(NORMAL, "");
}
bool crc = (TexcomTK13CRC(&card.tcode[3]) == card.tcode[7]); bool crc = (TexcomTK13CRC(&card.tcode[3]) == card.tcode[7]);
if (card.tcode[2] == 0x63) { if (card.tcode[2] == 0x63) {
@ -536,9 +540,11 @@ int read_texkom_uid(bool loop, bool verbose) {
PrintAndLogEx(INFO, "CRC...... %s", (crc) ? _GREEN_("ok") : _RED_("fail")); PrintAndLogEx(INFO, "CRC...... %s", (crc) ? _GREEN_("ok") : _RED_("fail"));
} }
} }
if (verbose) {
PrintAndLogEx(INFO, "Raw... %s", sprint_hex(card.tcode, 8)); PrintAndLogEx(INFO, "Raw... %s", sprint_hex(card.tcode, 8));
PrintAndLogEx(INFO, "Raw Reversed... %s", sprint_hex(card.rtcode, 8)); PrintAndLogEx(INFO, "Raw Reversed... %s", sprint_hex(card.rtcode, 8));
} }
}
} while (loop && kbd_enter_pressed() == false); } while (loop && kbd_enter_pressed() == false);
@ -549,7 +555,7 @@ static int CmdHFTexkomReader(const char *Cmd) {
CLIParserContext *ctx; CLIParserContext *ctx;
CLIParserInit(&ctx, "hf texkom reader", CLIParserInit(&ctx, "hf texkom reader",
"Read a texkom tag", "Read a texkom tag",
"hf texkom reader" "hf texkom reader\n"
"hf texkom reader -@ -> continuous reader mode" "hf texkom reader -@ -> continuous reader mode"
); );