]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: the "hf list legic" on MIM1024 wrapped around readingbyte 255 due to a too...
authoriceman1001 <iceman@iuse.se>
Sun, 2 Oct 2016 10:29:18 +0000 (12:29 +0200)
committericeman1001 <iceman@iuse.se>
Sun, 2 Oct 2016 10:29:18 +0000 (12:29 +0200)
client/cmdhf.c

index b49b35e9aad6f8789f1453244549a098032fc9af..472038080c27f0d01b4b69fb125f8dd0ac1886fe 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);
Impressum, Datenschutz