- arg0 = iso14443a_select_card(NULL, (iso14a_card_select_t*)buf, NULL);
- cmd_send(CMD_ACK,arg0,0,0,buf,sizeof(iso14a_card_select_t));
+ if(!(param & ISO14A_NO_SELECT)) {
+ iso14a_card_select_t *card = (iso14a_card_select_t*)buf;
+ arg0 = iso14443a_select_card(NULL,card,NULL);
+ cmd_send(CMD_ACK,arg0,card->uidlen,0,buf,sizeof(iso14a_card_select_t));
+ }