mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
change token for !crc -> !! and added colors to it
This commit is contained in:
parent
87f29d1fa9
commit
a6c09505ce
1 changed files with 2 additions and 2 deletions
|
@ -683,7 +683,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw the CRC column
|
// Draw the CRC column
|
||||||
const char *crcstrings[] = { "!crc", " ok ", " ", "A ok", "B ok" };
|
const char *crcstrings[] = { _RED_(" !! "), _GREEN_(" ok "), " ", _GREEN_("A ok"), _GREEN_("B ok") };
|
||||||
const char *crc = crcstrings[crcStatus];
|
const char *crc = crcstrings[crcStatus];
|
||||||
|
|
||||||
// mark short bytes (less than 8 Bit + Parity)
|
// mark short bytes (less than 8 Bit + Parity)
|
||||||
|
@ -876,7 +876,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr
|
||||||
PrintAndLogEx(NORMAL, " | | * |%-*s | %-4s| %s",
|
PrintAndLogEx(NORMAL, " | | * |%-*s | %-4s| %s",
|
||||||
72 + crc_format_string_offset,
|
72 + crc_format_string_offset,
|
||||||
sprint_hex_inrow_spaces(mfData, mfDataLen, 2),
|
sprint_hex_inrow_spaces(mfData, mfDataLen, 2),
|
||||||
(crcc == 0 ? "!crc" : (crcc == 1 ? " ok " : " ")),
|
(crcc == 0 ? _RED_(" !! ") : (crcc == 1 ? _GREEN_(" ok ") : " ")),
|
||||||
explanation);
|
explanation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue