]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Fixed issue #43 on github
authorMartin Holst Swende <martin@swende.se>
Thu, 15 Jan 2015 15:07:58 +0000 (16:07 +0100)
committerMartin Holst Swende <martin@swende.se>
Thu, 15 Jan 2015 15:07:58 +0000 (16:07 +0100)
armsrc/iso14443a.c

index cf55e6068c9b65d01d06efd583ae76bede2296f6..d326be2c5f6dff70ab535b54a4dc2e101ffbbebc 100644 (file)
@@ -1772,7 +1772,7 @@ int iso14443a_select_card(byte_t *uid_ptr, iso14a_card_select_t *p_hi14a_card, u
                                Dbprintf("Multiple tags detected. Collision after Bit %d", Demod.collisionPos);
                                for (uint16_t i = collision_answer_offset; i < Demod.collisionPos; i++, uid_resp_bits++) {      // add valid UID bits before collision point
                                        uint16_t UIDbit = (resp[i/8] >> (i % 8)) & 0x01;
-                                       uid_resp[uid_resp_bits & 0xf8] |= UIDbit << (uid_resp_bits % 8);
+                                       uid_resp[uid_resp_bits 8] |= UIDbit << (uid_resp_bits % 8);
                                }
                                uid_resp[uid_resp_bits/8] |= 1 << (uid_resp_bits % 8);                                  // next time select the card(s) with a 1 in the collision position
                                uid_resp_bits++;
Impressum, Datenschutz