the ndef printing is now more dense and it honors verbose output

This commit is contained in:
iceman1001 committed 2022-10-23 02:59:27 +02:00
1 parent 69fd1ac889
commit 2627f3b3b9
11 files changed
+130 -97

No files matched your search

+3 -1
View File
@@ -287,6 +287,7 @@ int CmdHFST25TANdefRead(const char *Cmd) {
arg_param_begin,
arg_str0("p", "pwd", "<hex>", "16 byte read password"),
arg_str0("f", "file", "<fn>", "save raw NDEF to file"),
arg_litn("v", "verbose", 0, 2, "show technical data"),
arg_param_end
};
CLIExecWithReturn(ctx, Cmd, argtable, true);
@@ -294,6 +295,7 @@ int CmdHFST25TANdefRead(const char *Cmd) {
int fnlen = 0;
char filename[FILE_PATH_SIZE] = {0};
CLIParamStrToBuf(arg_get_str(ctx, 2), (uint8_t *)filename, FILE_PATH_SIZE, &fnlen);
bool verbose = arg_get_lit(ctx, 3);
CLIParserFree(ctx);
if (pwdlen == 0) {
@@ -404,7 +406,7 @@ int CmdHFST25TANdefRead(const char *Cmd) {
if (fnlen != 0) {
saveFile(filename, ".bin", response + 2, resplen - 4);
}
NDEFRecordsDecodeAndPrint(response + 2, resplen - 4);
NDEFRecordsDecodeAndPrint(response + 2, resplen - 4, verbose);
return PM3_SUCCESS;
}