]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlft55xx.c
ADD: cmdlf autocorrelations, also gives a hint to how many bytes the possible correl...
[proxmark3-svn] / client / cmdlft55xx.c
index bd4026381f8e237150dba41dce19261840ed05a1..61758bde01e576c632dafcce0fe9c23f3af8e9a6 100644 (file)
@@ -276,8 +276,8 @@ int CmdT55xxDetect(const char *Cmd){
        if (strlen(Cmd) > 1 || cmdp == 'h' || cmdp == 'H') \r
                return usage_t55xx_detect();\r
 \r
-       if ( strlen(Cmd)==0)\r
-               AquireData(CONFIGURATION_BLOCK);\r
+       if (strlen(Cmd)==0)\r
+               AquireData( CONFIGURATION_BLOCK );\r
        \r
        if ( !tryDetectModulation() )\r
                PrintAndLog("Could not detect modulation automatically. Try setting it manually with \'lf t55xx config\'");\r
@@ -534,7 +534,6 @@ int special(const char *Cmd) {
                //PrintAndLog("[%02d] 0x%08X  %s %s",j , blockData, sprint_bin(bits,32), indicate);     \r
                PrintAndLog("[%02d] 0x%08X  %s",j , blockData, sprint_bin(bits,32));    \r
        }\r
-       \r
        return 0;\r
 }\r
 \r
@@ -566,16 +565,14 @@ int CmdT55xxWriteBlock(const char *Cmd)
        }\r
 \r
        if (block > 7) {\r
-               PrintAndLog("Block must be between 0 and 7");\r
+               PrintAndLog("Block number must be between 0 and 7");\r
                return 1;\r
        }\r
        \r
        UsbCommand c = {CMD_T55XX_WRITE_BLOCK, {data, block, 0}};\r
        c.d.asBytes[0] = 0x0; \r
 \r
-       PrintAndLog("Writing to T55x7");\r
-       PrintAndLog("block : %d", block);\r
-       PrintAndLog("data  : 0x%08X", data);\r
+       PrintAndLog("Writing to block: %d  data: 0x%08X", block, data);\r
 \r
        //Password mode\r
        if (res == 3) {\r
@@ -594,9 +591,8 @@ int CmdT55xxReadTrace(const char *Cmd)
        if (strlen(Cmd) > 1 || cmdp == 'h' || cmdp == 'H') \r
                return usage_t55xx_trace();\r
 \r
-       if ( strlen(Cmd)==0){\r
+       if (strlen(Cmd)==0)\r
                AquireData( TRACE_BLOCK );\r
-       }\r
        \r
        DecodeT55xxBlock();\r
 \r
Impressum, Datenschutz