X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/e1ad67eaf252b9cf0e0aef9f02c13ce74d6ae546..4ab54914e3e9e24f1d04694ea0d8926c576cf905:/client/cmdlfti.c?ds=sidebyside diff --git a/client/cmdlfti.c b/client/cmdlfti.c index 66b2cd8b..5997b5f6 100644 --- a/client/cmdlfti.c +++ b/client/cmdlfti.c @@ -174,7 +174,7 @@ int CmdTIDemod(const char *Cmd) uint32_t shift3 = 0x7e000000, shift2 = 0, shift1 = 0, shift0 = 0; - for (i = 0; i < arraylen(bits)-1; i++) { + for (i = 0; i < ARRAYLEN(bits)-1; i++) { int high = 0; int low = 0; int j; @@ -298,11 +298,12 @@ static command_t CommandTable[] = { }; int CmdLFTI(const char *Cmd){ - CmdsParse(CommandTable, Cmd); - return 0; + clearCommandBuffer(); + CmdsParse(CommandTable, Cmd); + return 0; } int CmdHelp(const char *Cmd){ - CmdsHelp(CommandTable); - return 0; + CmdsHelp(CommandTable); + return 0; }