X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/8d0a3e87d7d2350f4a05698a42f57625e460e5d6..d3a22c7dfa87bf5e21d228849a602194be4a0895:/client/cmddata.c diff --git a/client/cmddata.c b/client/cmddata.c index e9499ed8..9a19dca7 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -100,6 +100,7 @@ int Cmdaskdemod(const char *Cmd) * low for long periods, others just reach the peak and go * down) */ + //[marhsmellow] change == to >= for high and <= for low for fuzz if ((GraphBuffer[i] == high) && (GraphBuffer[i - 1] == c)) { GraphBuffer[i] = 1 - c; } else if ((GraphBuffer[i] == low) && (GraphBuffer[i - 1] == (1 - c))){ @@ -220,12 +221,12 @@ int Cmdaskmandemod(const char *Cmd) PrintAndLog("ASK/Manchester decoded bitstream:"); printBitStream(bits, len); - uint64_t lo = Em410xDecode(bits, len); - if (lo > 0){ - SetGraphBuf(bits,len); - PrintAndLog("EM410x pattern found: "); - printEM410x(lo); + uint64_t tagid = Em410xDecode(bits, len); + + if (tagid > 0){ + SetGraphBuf(bits, len); + printEM410x(tagid); return 1; } return 0;