]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: the check for formatlen was wrong.
authoriceman1001 <iceman@iuse.se>
Fri, 26 Aug 2016 20:31:45 +0000 (22:31 +0200)
committericeman1001 <iceman@iuse.se>
Fri, 26 Aug 2016 20:31:45 +0000 (22:31 +0200)
Still missing the other formats,  only 26bit in this one.

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