X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/89603cbddc4f9ceb44fe7ef41fec4fcdd989a2d5..d6c891c5c8effa07feb61906a3002d808ac94491:/client/cmdlfhid.c?ds=inline diff --git a/client/cmdlfhid.c b/client/cmdlfhid.c index 16209660..11d996b7 100644 --- a/client/cmdlfhid.c +++ b/client/cmdlfhid.c @@ -428,12 +428,15 @@ int CmdHIDBrute(const char *Cmd){ case 'A': fmtlen = param_get8(Cmd, cmdp+1); cmdp += 2; + bool is_ftm_ok = FALSE; uint8_t ftms[] = {26,33,34,35,37}; for ( uint8_t i = 0; i < sizeof(ftms); i++){ if ( ftms[i] == fmtlen ) { - errors = FALSE; + is_ftm_ok = TRUE; } } + // negated + errors = !is_ftm_ok; break; default: PrintAndLog("Unknown parameter '%c'", param_getchar(Cmd, cmdp));