mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 18:24:27 +08:00
Chg: 'data ndef' - cleaner output if called with no hex
This commit is contained in:
parent
83e92c6455
commit
d633340a1a
1 changed files with 2 additions and 1 deletions
|
@ -2309,8 +2309,9 @@ static int CmdDataNDEF(const char *Cmd) {
|
|||
int datalen = 0;
|
||||
uint8_t data[MAX_NDEF_LEN] = {0};
|
||||
CLIGetHexWithReturn(1, data, &datalen);
|
||||
|
||||
CLIParserFree();
|
||||
if (datalen == 0)
|
||||
return PM3_EINVARG;
|
||||
|
||||
PrintAndLogEx(INFO, "Parsed NDEF Records");
|
||||
return NDEFRecordsDecodeAndPrint(data, datalen);
|
||||
|
|
Loading…
Reference in a new issue