]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhflegic.c
CHG: making timings a bit tighter == faster read of tag. Like 1ms for whole tag.
[proxmark3-svn] / client / cmdhflegic.c
index 1331386692ed3a3b47e44f9fc1570391fc7a2162..6b880da69281c7bf20df0a4ddb463cd306b7ebbb 100644 (file)
@@ -400,7 +400,7 @@ int CmdLegicRFRead(const char *Cmd) {
        // OUT-OF-BOUNDS check
        if ( len + offset > MAX_LENGTH ) {
                len = MAX_LENGTH - offset;
        // OUT-OF-BOUNDS check
        if ( len + offset > MAX_LENGTH ) {
                len = MAX_LENGTH - offset;
-               PrintAndLog("Out-of-bound, shorten len to %d (0x%02X)", len);
+               PrintAndLog("Out-of-bound, shorten len to %d (0x%02X)", len, len);
        }
        
        if ( (IV & 0x7F) != IV ){
        }
        
        if ( (IV & 0x7F) != IV ){
@@ -417,7 +417,7 @@ int CmdLegicRFRead(const char *Cmd) {
        clearCommandBuffer();
        SendCommand(&c);
        UsbCommand resp;
        clearCommandBuffer();
        SendCommand(&c);
        UsbCommand resp;
-       if (WaitForResponseTimeout(CMD_ACK, &resp, 2500)) {
+       if (WaitForResponseTimeout(CMD_ACK, &resp, 3000)) {
                uint8_t isOK = resp.arg[0] & 0xFF;
                uint16_t readlen = resp.arg[1];
                 if ( isOK ) {
                uint8_t isOK = resp.arg[0] & 0xFF;
                uint16_t readlen = resp.arg[1];
                 if ( isOK ) {
@@ -440,8 +440,8 @@ int CmdLegicRFRead(const char *Cmd) {
                                return 1;
                        }
        
                                return 1;
                        }
        
-                       PrintAndLog("\nData");
-                       PrintAndLog("-----------------------------");
+                       PrintAndLog("\n ##  | Data");
+                       PrintAndLog("-----+-----");
                        print_hex_break( data, readlen, 32);
                 } else {
                         PrintAndLog("failed reading tag");
                        print_hex_break( data, readlen, 32);
                 } else {
                         PrintAndLog("failed reading tag");
@@ -614,7 +614,7 @@ int CmdLegicRfWrite(const char *Cmd) {
        // OUT-OF-BOUNDS check
        if ( len + offset > MAX_LENGTH ) {
                len = MAX_LENGTH - offset;
        // OUT-OF-BOUNDS check
        if ( len + offset > MAX_LENGTH ) {
                len = MAX_LENGTH - offset;
-               PrintAndLog("Out-of-bound, shorten len to %d (0x%02X)", len);
+               PrintAndLog("Out-of-bound, shorten len to %d (0x%02X)", len, len);
        }
        if ( (IV & 0x7F) != IV ){
                IV &= 0x7F;
        }
        if ( (IV & 0x7F) != IV ){
                IV &= 0x7F;
Impressum, Datenschutz