all is OK. Just need to fix comment.

This commit is contained in:
merlokk 2017-11-01 18:10:11 +02:00
commit 5fdb7e97e4

View file

@ -1821,7 +1821,9 @@ int iso14443a_select_card(byte_t *uid_ptr, iso14a_card_select_t *p_hi14a_card, u
}
// PICC compilant with iso14443a-4 ---> (SAK & 0x20 != 0)
if (sak & 0x20 && !no_rats) {
if( (sak & 0x20) == 0) return 2;
if (!no_rats) {
// Request for answer to select
AppendCrc14443a(rats, 2);
ReaderTransmit(rats, sizeof(rats), NULL);