mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
CHG: mcIdent now turn on/off readerfield.
This commit is contained in:
parent
0ea06dbe9b
commit
6e46822c4c
1 changed files with 6 additions and 2 deletions
|
@ -1788,7 +1788,9 @@ void MifareCIdent(){
|
|||
uint8_t isGen = 0;
|
||||
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)) {
|
||||
|
@ -1825,7 +1827,9 @@ TEST2:;
|
|||
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);
|
||||
cmd_send(CMD_ACK, isGen, 0, 0, 0, 0);
|
||||
// turns off
|
||||
OnSuccessMagic();
|
||||
}
|
||||
|
||||
void OnSuccessMagic(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue