CHG: mcIdent now turn on/off readerfield.

This commit is contained in:
iceman1001 2017-10-30 12:05:14 +01:00
commit 6e46822c4c

View file

@ -1788,7 +1788,9 @@ void MifareCIdent(){
uint8_t isGen = 0; uint8_t isGen = 0;
uint8_t rec[1] = {0x00}; uint8_t rec[1] = {0x00};
uint8_t recpar[1] = {0x00}; uint8_t recpar[1] = {0x00};
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);
// Generation 1 test // Generation 1 test
ReaderTransmitBitsPar(wupC1, 7, NULL, NULL); ReaderTransmitBitsPar(wupC1, 7, NULL, NULL);
if(!ReaderReceive(rec, recpar) || (rec[0] != 0x0a)) { if(!ReaderReceive(rec, recpar) || (rec[0] != 0x0a)) {
@ -1825,7 +1827,9 @@ TEST2:;
OUT:; OUT:;
// removed the if, since some magic tags misbehavies and send an answer to it. // removed the if, since some magic tags misbehavies and send an answer to it.
mifare_classic_halt_ex(NULL); mifare_classic_halt_ex(NULL);
cmd_send(CMD_ACK,isGen, 0, 0, 0, 0); cmd_send(CMD_ACK, isGen, 0, 0, 0, 0);
// turns off
OnSuccessMagic();
} }
void OnSuccessMagic(){ void OnSuccessMagic(){