]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf.c
FIX: one send command bug fixed. Turns out that uint16_t is too small for 21/23bits...
[proxmark3-svn] / client / cmdhf.c
index b49b35e9aad6f8789f1453244549a098032fc9af..bc8d2ecccd8f2a861c7b01fe9bcfef185c92f200 100644 (file)
@@ -389,7 +389,7 @@ void annotateLegic(char *exp, size_t size, uint8_t* cmd, uint8_t cmdsize){
                case 9:
                case 11: {
                        uint8_t cmdBit = (cmd[1] & 1);
-                       uint8_t address = (cmd[2] << 7) | cmd[1] >> 1;
+                       uint16_t address = (cmd[2] << 7) | cmd[1] >> 1;
                        
                        if (cmdBit == LEGIC_READ) 
                                snprintf(exp, size, "READ Byte(%d)", address);
@@ -882,7 +882,7 @@ int CmdHFSearch(const char *Cmd){
                PrintAndLog("\nValid Topaz Tag Found - Quiting Search\n");
                return 1;
        }
-       ans = HFLegicInfo("", false);
+       ans = HFLegicReader("", false);
        if ( ans == 0) {
                PrintAndLog("\nValid LEGIC Tag Found - Quiting Search\n");
                return 1;
Impressum, Datenschutz