refactor Hitag S r/w into separate submenu; implement pretty config parsing

This commit is contained in:
Ciprian Ionescu committed 2024-08-25 02:30:40 +02:00
1 parent 896e99514e
commit 8d77ee5438
7 files changed
+422 -1

No files matched your search

+2
View File
@@ -31,6 +31,7 @@
#include "pm3_cmd.h" // return codes
#include "hitag2/hitag2_crypto.h"
#include "util_posix.h" // msclock
#include "cmdlfhitags.h"
static int CmdHelp(const char *Cmd);
@@ -2477,6 +2478,7 @@ static int CmdLFHitag2Selftest(const char *Cmd) {
static command_t CommandTable[] = {
{"help", CmdHelp, AlwaysAvailable, "This help"},
{"list", CmdLFHitagList, AlwaysAvailable, "List Hitag trace history"},
{"s", CmdLFHitagS, AlwaysAvailable, "Hitag S/8211 operations"},
{"-----------", CmdHelp, IfPm3Hitag, "------------------------ " _CYAN_("General") " ------------------------"},
{"info", CmdLFHitagInfo, IfPm3Hitag, "Hitag 2 tag information"},
{"reader", CmdLFHitagReader, IfPm3Hitag, "Act like a Hitag 2 reader"},