]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/legicrf.c
CHG: fixes to match the new arguments to the darkside attack (keytype A|B and blockn...
[proxmark3-svn] / armsrc / legicrf.c
index c732ee14d6aa2c7909f9721b8a4713289a1ba1df..c48aa0bc136d3925a9ee942671c397dccf6f3411 100644 (file)
@@ -669,11 +669,8 @@ void LegicRfRawWriter(int offset, int byte) {
                LED_B_OFF();
                LED_C_OFF();
                return;
-                       
-        WDT_HIT();
-               byte_index++;
-        if(byte_index & 0x10) LED_C_ON(); else LED_C_OFF();
        }
+       
     LED_B_OFF();
     LED_C_OFF();
     DbpString("write successful");
@@ -1572,7 +1569,7 @@ static void CodeAndTransmitLegicAsReader(const uint8_t *cmd, uint8_t cmdlen, int
        TransmitForLegic();
        if (tracing) {
                uint8_t parity[1] = {0x00};
-               LogTrace(cmd, bits, 0, 0, parity, TRUE);
+               LogTrace(cmd, cmdlen, 0, 0, parity, TRUE);
        }
 }
 
Impressum, Datenschutz