fixing NDEF

This commit is contained in:
iceman1001
2020-03-31 15:47:33 +02:00
parent 6eb36c5438
commit 160f150dce
3 changed files with 28 additions and 31 deletions

View File

@@ -10,22 +10,20 @@
// Data and Graph commands
//-----------------------------------------------------------------------------
#include "cmddata.h"
#include <stdio.h>
#include <string.h>
#include <limits.h> // for CmdNorm INT_MIN && INT_MAX
#include <math.h> // pow
#include <ctype.h> // tolower
#include "commonutil.h" // ARRAYLEN
#include "cmdparser.h" // for command_t
#include "ui.h" // for show graph controls
#include "graph.h" // for graph data
#include "commonutil.h" // ARRAYLEN
#include "cmdparser.h" // for command_t
#include "ui.h" // for show graph controls
#include "graph.h" // for graph data
#include "comms.h"
#include "lfdemod.h" // for demod code
#include "lfdemod.h" // for demod code
#include "loclass/cipherutils.h" // for decimating samples in getsamples
#include "cmdlfem4x.h" // askem410xdecode
#include "fileutils.h" // searchFile
#include "cmdlfem4x.h" // askem410xdecode
#include "fileutils.h" // searchFile
#include "mifare/ndef.h"
#include "cliparser/cliparser.h"
@@ -2314,9 +2312,7 @@ static int CmdDataNDEF(const char *Cmd) {
CLIParserFree();
PrintAndLogEx(NORMAL, "ice: %s", sprint_hex(data, datalen));
NDEFDecodeAndPrint(data, datalen, true);
NDEFRecordsDecodeAndPrint(data, datalen);
return PM3_SUCCESS;
}