]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Merge pull request #54 from Proxmark/lf_recorder
authorMartin Holst Swende <martin@swende.se>
Mon, 2 Feb 2015 18:54:07 +0000 (19:54 +0100)
committerMartin Holst Swende <martin@swende.se>
Mon, 2 Feb 2015 18:54:07 +0000 (19:54 +0100)
LF: Ability to do longer traces/snoops

client/cmddata.c

index 0ec73cbb79b542406bf1afd00df403ed12d9f349..430afb174b9cee1b1f64da2f37ba3fb8e8ee4374 100644 (file)
@@ -58,6 +58,10 @@ void printDemodBuff()
                return;
        }
        if (bitLen>512) bitLen=512; //max output to 512 bits if we have more - should be plenty
+               
+       // ensure equally divided by 16
+       bitLen &= 0xfff0;
+       
        for (i = 0; i <= (bitLen-16); i+=16) {
                PrintAndLog("%i%i%i%i%i%i%i%i%i%i%i%i%i%i%i%i",
                        DemodBuffer[i],
@@ -190,6 +194,11 @@ void printBitStream(uint8_t BitStream[], uint32_t bitLen)
     return;
   }
   if (bitLen>512) bitLen=512;
+  
+       // ensure equally divided by 16
+       bitLen &= 0xfff0;
+
+
    for (i = 0; i <= (bitLen-16); i+=16) {
     PrintAndLog("%i%i%i%i%i%i%i%i%i%i%i%i%i%i%i%i",
       BitStream[i],
Impressum, Datenschutz