From a0dcfd59ee017c70dd0ba5b2e1d3cabf71f13dc4 Mon Sep 17 00:00:00 2001 From: florianrock <45316656+florianrock@users.noreply.github.com> Date: Mon, 3 Dec 2018 06:12:11 +0100 Subject: [PATCH] Update hitagS.c Bugfix for #605 - wrong compare for tag.LKP --- armsrc/hitagS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/hitagS.c b/armsrc/hitagS.c index 5fa6a9a14..3c247d552 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;