]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
speed up the em4x05 cmds by only getting 6k...
authormarshmellow42 <marshmellowrf@gmail.com>
Mon, 20 Feb 2017 20:06:22 +0000 (15:06 -0500)
committermarshmellow42 <marshmellowrf@gmail.com>
Mon, 20 Feb 2017 20:06:22 +0000 (15:06 -0500)
samples back

armsrc/lfops.c
client/cmdlfem4x.c

index 87b21efca521df3f80cf8b8aa4771334ccd282fd..cfe032fc45eab9277995a94843604886fa980094 100644 (file)
@@ -1628,7 +1628,7 @@ void EM4xReadWord(uint8_t Address, uint32_t Pwd, uint8_t PwdMode) {
        SendForward(fwd_bit_count);
 
        // Now do the acquisition
-       DoAcquisition_default(0,TRUE);
+       doT55x7Acquisition(6000);
        
        FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); // field off
        LED_A_OFF();
index 6781b03dcb4518bbedfd9d078b28ba9a3cb8b6be..e0c415bb30abaca040c6b97eca274f46053f063e 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) ) {
Impressum, Datenschutz