Skip to content

Commit

Permalink
Update hitagS.c
Browse files Browse the repository at this point in the history
Bugfix for Proxmark#605 - wrong compare for tag.LKP
  • Loading branch information
florianrock committed Dec 3, 2018
1 parent 9c87879 commit a0dcfd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion armsrc/hitagS.c
Expand Up @@ -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;
Expand Down

0 comments on commit a0dcfd5

Please sign in to comment.