]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/BigBuf.c
ADD: @pwpivi 's latest fixes for bigbuff
[proxmark3-svn] / armsrc / BigBuf.c
index 703ade658da348db04f80b2824269a32c738cb55..e8cf8028e9551e5716e6b19c22dee4ac9b4964d0 100644 (file)
@@ -96,9 +96,6 @@ uint16_t BigBuf_max_traceLen(void)
 }
 
 void clear_trace() {
-       uint8_t *trace = BigBuf_get_addr();
-       uint16_t max_traceLen = BigBuf_max_traceLen();
-       memset(trace, 0x44, max_traceLen);
        traceLen = 0;
 }
 
@@ -172,17 +169,14 @@ bool RAMFUNC LogTrace(const uint8_t *btBytes, uint16_t iLen, uint32_t timestamp_
 
        // parity bytes
        if (parity != NULL && iLen != 0) {
-               memcpy(trace + traceLen, parity, num_paritybytes);
+                       memcpy(trace + traceLen, parity, num_paritybytes);
        }
        traceLen += num_paritybytes;
 
-       if(traceLen +4 < max_traceLen)
-       {       //If it hadn't been cleared, for whatever reason..
-               memset(trace+traceLen,0x44, 4);
-       }
-
        return TRUE;
 }
+
+
 int LogTraceHitag(const uint8_t * btBytes, int iBits, int iSamples, uint32_t dwParity, int readerToTag)
 {
        /**
Impressum, Datenschutz