From: florianrock <45316656+florianrock@users.noreply.github.com> Date: Mon, 3 Dec 2018 07:23:53 +0000 (+0100) Subject: Update hitagS.c (#729) X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/383f4e2479f45df77d44078618454d1ddbf52290 Update hitagS.c (#729) Bugfix for #605 - wrong compare for tag.LKP --- diff --git a/armsrc/hitagS.c b/armsrc/hitagS.c index 5fa6a9a1..3c247d55 100644 --- a/armsrc/hitagS.c +++ b/armsrc/hitagS.c @@ -1489,7 +1489,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;