]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fix HitagS simulation erors (issue #605) (#606)
authorpwpiwi <pwpiwi@users.noreply.github.com>
Fri, 11 May 2018 03:24:02 +0000 (05:24 +0200)
committerGitHub <noreply@github.com>
Fri, 11 May 2018 03:24:02 +0000 (05:24 +0200)
armsrc/hitagS.c

index dc2281b964c8dd065b68cf00b53c7bb72634f5dd..7d36d84b988283e866ea28ccfe81350042713c91 100644 (file)
@@ -985,39 +985,39 @@ void SimulateHitagSTag(bool tag_mem_supplied, byte_t* data) {
                tag.max_page=0;
        //con1
        tag.auth=0;
                tag.max_page=0;
        //con1
        tag.auth=0;
-       if((tag.pages[1][2]&0x80)==1)
+       if (tag.pages[1][2]&0x80)
                tag.auth=1;
        tag.LCON=0;
                tag.auth=1;
        tag.LCON=0;
-       if((tag.pages[1][2]&0x2)==1)
+       if (tag.pages[1][2]&0x2)
                tag.LCON=1;
        tag.LKP=0;
                tag.LCON=1;
        tag.LKP=0;
-       if((tag.pages[1][2]&0x1)==1)
+       if (tag.pages[1][2]&0x1)
                tag.LKP=1;
        //con2
        //0=read write 1=read only
        tag.LCK7=0;
                tag.LKP=1;
        //con2
        //0=read write 1=read only
        tag.LCK7=0;
-       if((tag.pages[1][1]&0x80)==1)
+       if (tag.pages[1][1]&0x80)
                tag.LCK7=1;
        tag.LCK6=0;
                tag.LCK7=1;
        tag.LCK6=0;
-       if((tag.pages[1][1]&0x40)==1)
+       if (tag.pages[1][1]&0x40)
                tag.LCK6=1;
        tag.LCK5=0;
                tag.LCK6=1;
        tag.LCK5=0;
-       if((tag.pages[1][1]&0x20)==1)
+       if (tag.pages[1][1]&0x20)
                tag.LCK5=1;
        tag.LCK4=0;
                tag.LCK5=1;
        tag.LCK4=0;
-       if((tag.pages[1][1]&0x10)==1)
+       if (tag.pages[1][1]&0x10)
                tag.LCK4=1;
        tag.LCK3=0;
                tag.LCK4=1;
        tag.LCK3=0;
-       if((tag.pages[1][1]&0x8)==1)
+       if (tag.pages[1][1]&0x8)
                tag.LCK3=1;
        tag.LCK2=0;
                tag.LCK3=1;
        tag.LCK2=0;
-       if((tag.pages[1][1]&0x4)==1)
+       if (tag.pages[1][1]&0x4)
                tag.LCK2=1;
        tag.LCK1=0;
                tag.LCK2=1;
        tag.LCK1=0;
-       if((tag.pages[1][1]&0x2)==1)
+       if (tag.pages[1][1]&0x2)
                tag.LCK1=1;
        tag.LCK0=0;
                tag.LCK1=1;
        tag.LCK0=0;
-       if((tag.pages[1][1]&0x1)==1)
+       if (tag.pages[1][1]&0x1)
                tag.LCK0=1;
 
 // Set up simulator mode, frequency divisor which will drive the FPGA
                tag.LCK0=1;
 
 // Set up simulator mode, frequency divisor which will drive the FPGA
Impressum, Datenschutz