X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/921e63992c322e68aeb769241f7262f54ca61d06..38cb7c71c52b1b710dd0a8a8883713617b713035:/client/cmdlf.c?ds=sidebyside diff --git a/client/cmdlf.c b/client/cmdlf.c index 2000f6d0..59f6cd0d 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -1180,10 +1180,14 @@ int CmdLFfind(const char *Cmd) return 1; } - if (!offline && (cmdp != '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; + } } }