mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
marking of crc bytes overwrote first hex char
This commit is contained in:
parent
64a04498bd
commit
27dafa2bb0
1 changed files with 2 additions and 2 deletions
|
@ -279,9 +279,9 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr
|
||||||
if (markCRCBytes) {
|
if (markCRCBytes) {
|
||||||
//CRC-command
|
//CRC-command
|
||||||
if (crcStatus == 0 || crcStatus == 1) {
|
if (crcStatus == 0 || crcStatus == 1) {
|
||||||
char *pos1 = line[(data_len - 2) / 18] + (((data_len - 2) % 18) * 4);
|
char *pos1 = line[(data_len - 2) / 18] + (((data_len - 2) % 18) * 4) - 1;
|
||||||
(*pos1) = '[';
|
(*pos1) = '[';
|
||||||
char *pos2 = line[(data_len) / 18] + (((data_len) % 18) * 4);
|
char *pos2 = line[(data_len) / 18] + (((data_len) % 18) * 4) - 1;
|
||||||
sprintf(pos2, "%c", ']');
|
sprintf(pos2, "%c", ']');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue