X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/89603cbddc4f9ceb44fe7ef41fec4fcdd989a2d5..eb911aa8d6b2ddf5163fc75f06da416eb968bd9f:/client/cmdlfhid.c 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));