]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfhid.c
ADD: added a install.sh script for easy installation of dependencies on linux.
[proxmark3-svn] / client / cmdlfhid.c
index 162096601ff1e61c179eb3e981b53c55c2095972..11d996b7b3f92e474eca337063e17b8123057285 100644 (file)
@@ -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));
Impressum, Datenschutz