X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/7b6e32053373740516833b1a228a0ad01bb14bd2..b6851c194edcb16ef0ec3c13038216cabb6a46e0:/armsrc/hitagS.c diff --git a/armsrc/hitagS.c b/armsrc/hitagS.c index 5fa6a9a1..8a451606 100644 --- a/armsrc/hitagS.c +++ b/armsrc/hitagS.c @@ -20,6 +20,7 @@ #include "hitag2.h" #include "string.h" #include "BigBuf.h" +#include "fpgaloader.h" #define CRC_PRESET 0xFF #define CRC_POLYNOM 0x1D @@ -1489,7 +1490,7 @@ void SimulateHitagSTag(bool tag_mem_supplied, byte_t* data) { //tag.TTFDR in response_bit[10] and response_bit[11] //tag.TTFM in response_bit[12] and response_bit[13] tag.LCON = ((con1 & 0x2) == 0x2) ? 1 : 0; - tag.LKP = ((con1 & 0x2) == 0x1) ? 1 : 0; + tag.LKP = ((con1 & 0x1) == 0x1) ? 1 : 0; //CON2 tag.LCK7 = ((con2 & 0x80) == 0x80) ? 1 : 0;