]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlf.c
add check for no wave in graphbuffer prior to...
[proxmark3-svn] / client / cmdlf.c
index dcb64166df3dc69988d4e046d2ca347eff6bd611..59f6cd0d4a336ba12e89bdc3406e85a941807e64 100644 (file)
@@ -1180,9 +1180,15 @@ int CmdLFfind(const char *Cmd)
                return 1;
        }
 
-       ans=CmdLFHitagReader("26");
-       if (ans==0) {
-               return 1;
+       size_t testLen = (GraphTraceLen < 500) ? GraphTraceLen : 500;
+       // only run if graphbuffer is just noise as it should be for hitag
+       if (graphJustNoise(GraphBuffer, testLen)) { 
+               if (!offline && (cmdp != '1')){
+                       ans=CmdLFHitagReader("26");
+                       if (ans==0) {
+                               return 1;
+                       }
+               }
        }
 
        PrintAndLog("\nNo Known Tags Found!\n");
Impressum, Datenschutz