fixed some commands in client

This commit is contained in:
merlokk 2017-10-24 19:32:19 +03:00
commit 886df5f61b

View file

@ -542,11 +542,12 @@ int mfCSetUID(uint8_t *uid, uint8_t *atqa, uint8_t *sak, uint8_t *oldUID) {
int mfCIdentify() int mfCIdentify()
{ {
UsbCommand c = {CMD_READER_ISO_14443a, {ISO14A_CONNECT | ISO14A_NO_DISCONNECT, 0, 0}}; UsbCommand c;
SendCommand(&c); // UsbCommand c = {CMD_READER_ISO_14443a, {ISO14A_CONNECT | ISO14A_NO_DISCONNECT, 0, 0}};
// SendCommand(&c);
UsbCommand resp; UsbCommand resp;
WaitForResponse(CMD_ACK,&resp); // WaitForResponse(CMD_ACK,&resp);
// iso14a_card_select_t card; // iso14a_card_select_t card;
// memcpy(&card, (iso14a_card_select_t *)resp.d.asBytes, sizeof(iso14a_card_select_t)); // memcpy(&card, (iso14a_card_select_t *)resp.d.asBytes, sizeof(iso14a_card_select_t));
@ -578,11 +579,11 @@ int mfCIdentify()
} }
// disconnect // disconnect
c.cmd = CMD_READER_ISO_14443a; // c.cmd = CMD_READER_ISO_14443a;
c.arg[0] = 0; // c.arg[0] = 0;
c.arg[1] = 0; // c.arg[1] = 0;
c.arg[2] = 0; // c.arg[2] = 0;
SendCommand(&c); // SendCommand(&c);
return (int) isGeneration; return (int) isGeneration;
} }