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

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