mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
FIX: corrected one of my own bugs which made the calccrc8 not accept the input hexstring.
This commit is contained in:
parent
838c15a643
commit
6cf8fcb002
1 changed files with 2 additions and 2 deletions
|
@ -430,7 +430,7 @@ int CmdLegicCalcCrc8(const char *Cmd){
|
|||
uint8_t *data = malloc(len+1);
|
||||
if ( data == NULL ) return 1;
|
||||
|
||||
if (!param_gethex(Cmd, 0, data, len )) return usage_legic_calccrc8();
|
||||
if (param_gethex(Cmd, 0, data, len )) return usage_legic_calccrc8();
|
||||
|
||||
uint32_t checksum = CRC8Legic(data, len/2);
|
||||
PrintAndLog("Bytes: %s || CRC8: %X", sprint_hex(data, len/2), checksum );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue