break;
}
- if(receivedCmd_dec[0] == ISO14443A_CMD_READBLOCK
- || receivedCmd_dec[0] == ISO14443A_CMD_WRITEBLOCK
+ if(receivedCmd_dec[0] == MIFARE_CMD_READBLOCK
+ || receivedCmd_dec[0] == MIFARE_CMD_WRITEBLOCK
|| receivedCmd_dec[0] == MIFARE_CMD_INC
|| receivedCmd_dec[0] == MIFARE_CMD_DEC
|| receivedCmd_dec[0] == MIFARE_CMD_RESTORE
}
}
- if (receivedCmd_dec[0] == ISO14443A_CMD_READBLOCK) {
+ if (receivedCmd_dec[0] == MIFARE_CMD_READBLOCK) {
uint8_t blockNo = receivedCmd_dec[1];
emlGetMem(response, blockNo, 1);
if (IsSectorTrailer(blockNo)) {
break;
}
- if (receivedCmd_dec[0] == ISO14443A_CMD_WRITEBLOCK) {
+ if (receivedCmd_dec[0] == MIFARE_CMD_WRITEBLOCK) {
uint8_t blockNo = receivedCmd_dec[1];
EmSend4bit(mf_crypto1_encrypt4bit(pcs, CARD_ACK));
FpgaDisableTracing();