]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: no parity tests for ISO_7816_4 annotation
authoriceman1001 <iceman@iuse.se>
Mon, 21 Mar 2016 21:07:55 +0000 (22:07 +0100)
committericeman1001 <iceman@iuse.se>
Mon, 21 Mar 2016 21:07:55 +0000 (22:07 +0100)
client/cmdhf.c

index 41c10c29e6568a376d0d2092d8622c1a8674140c..2dc21fd9899f340084654eca5122a3afc8e1590f 100644 (file)
@@ -543,7 +543,7 @@ uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *trace, ui
                        oddparity ^= (((frame[j] & 0xFF) >> k) & 0x01);
                }
                uint8_t parityBits = parityBytes[j>>3];
-               if (protocol != ISO_14443B &&  (isResponse || protocol == ISO_14443A)  && (oddparity != ((parityBits >> (7-(j&0x0007))) & 0x01))) {
+               if (protocol != ISO_14443B && protocol != ISO_7816_4 &&  (isResponse || protocol == ISO_14443A)  && (oddparity != ((parityBits >> (7-(j&0x0007))) & 0x01))) {
                        snprintf(line[j/16]+(( j % 16) * 4),110, "%02x! ", frame[j]);
 
                } else {
@@ -562,9 +562,10 @@ uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *trace, ui
                }
        }
 
-       if(data_len == 0){
+       if(data_len == 0 )
                sprintf(line[0],"<empty trace - possible error>");
-       }
+
+
        //--- Draw the CRC column
        char *crc = (crcStatus == 0 ? "!crc" : (crcStatus == 1 ? " ok " : "    "));
 
Impressum, Datenschutz