mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
hf 15 demod - dont calc crc if we didnt get enough data
This commit is contained in:
parent
4d1b0f182e
commit
abaef4de6c
1 changed files with 3 additions and 1 deletions
|
@ -766,7 +766,9 @@ static int CmdHF15Demod(const char *Cmd) {
|
|||
for (i = 0; i < k; i++)
|
||||
PrintAndLogEx(SUCCESS, "# %2d: %02x ", i, outBuf[i]);
|
||||
|
||||
PrintAndLogEx(SUCCESS, "CRC %04x", Crc15(outBuf, k - 2));
|
||||
if (k > 2) {
|
||||
PrintAndLogEx(SUCCESS, "CRC %04x", Crc15(outBuf, k - 2));
|
||||
}
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue