]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfem4x.c
apply @holiman s graph changes +
[proxmark3-svn] / client / cmdlfem4x.c
index 6b1fa8838a033d0e3e14377eb2e772bd2678108a..83a7da4e3eb0a156383608cd6eff8f7703a7361a 100644 (file)
@@ -152,7 +152,8 @@ int AskEm410xDecode(bool verbose, uint32_t *hi, uint64_t *lo )
 
        if (Em410xDecode(BitStream, &BitLen, &idx, hi, lo)) {
                //set GraphBuffer for clone or sim command
-               setDemodBuf(BitStream, BitLen, idx);
+               setDemodBuf(DemodBuffer, (BitLen==40) ? 64 : 128, idx+1);
+               g_DemodStartIdx += (idx+1)*g_DemodClock;
                if (g_debugMode) {
                        PrintAndLog("DEBUG: idx: %d, Len: %d, Printing Demod Buffer:", idx, BitLen);
                        printDemodBuff();
Impressum, Datenschutz