]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfem4x.c
shorten em4x05 capture samples
[proxmark3-svn] / client / cmdlfem4x.c
index 6781b03dcb4518bbedfd9d078b28ba9a3cb8b6be..6208e63caaca604ed0d5882af69d279f52586481 100644 (file)
@@ -534,8 +534,8 @@ bool EM4x05testDemodReadData(uint32_t *word, bool readCmd) {
        // skip first two 0 bits as they might have been missed in the demod
        uint8_t preamble[] = {0,0,1,0,1,0};
        size_t startIdx = 0;
-       // set size to 15 to only test first 9 positions for the preamble
-       size_t size = (15 > DemodBufferLen) ? DemodBufferLen : 15;
+       // set size to 20 to only test first 14 positions for the preamble
+       size_t size = (20 > DemodBufferLen) ? DemodBufferLen : 20;
 
        //test preamble
        if ( !onePreambleSearch(DemodBuffer, preamble, sizeof(preamble), size, &startIdx) ) {
@@ -823,8 +823,9 @@ void printEM4x05info(uint8_t chipType, uint8_t cap, uint16_t custCode, uint32_t
 
        switch (cap) {
                case 3: PrintAndLog(" Cap Type:   %u | 330pF",cap); break;
-               case 2: PrintAndLog(" Cap Type:   %u | 210pF",cap); break;
+               case 2: PrintAndLog(" Cap Type:   %u | %spF",cap, (chipType==2)? "75":"210"); break;
                case 1: PrintAndLog(" Cap Type:   %u | 250pF",cap); break;
+               case 0: PrintAndLog(" Cap Type:   %u | no resonant capacitor",cap); break;
                default: PrintAndLog(" Cap Type:   %u | unknown",cap); break;
        }
 
Impressum, Datenschutz