X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/fc249a8e13faa79023f32fb0fe1ddde62d9cc94f..38cb7c71c52b1b710dd0a8a8883713617b713035:/client/cmdlf.c diff --git a/client/cmdlf.c b/client/cmdlf.c index dcb64166..59f6cd0d 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -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");