iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
clear_trace();\r
+ set_tracing(true);\r
\r
LED_A_ON();\r
LED_B_OFF();\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
clear_trace();\r
+ set_tracing(true);\r
\r
if(!iso14443a_select_card(NULL, NULL, NULL, true, 0)) {\r
if (MF_DBGLEVEL >= MF_DBG_ERROR) Dbprintf("Can't select card");\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
clear_trace();\r
+ set_tracing(true);\r
\r
int len = iso14443a_select_card(NULL, NULL, NULL, true, 0);\r
if(!len) {\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
clear_trace();\r
-\r
+ set_tracing(true);\r
+ \r
LED_A_ON();\r
LED_B_OFF();\r
LED_C_OFF();\r
// free eventually allocated BigBuf memory\r
BigBuf_free();\r
clear_trace();\r
-\r
+ set_tracing(true);\r
+ \r
// params\r
uint8_t blockNo = arg0;\r
uint16_t blocks = arg1;\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
clear_trace();\r
-\r
+ set_tracing(true);\r
+ \r
LED_A_ON();\r
LED_B_OFF();\r
LED_C_OFF();\r
LED_A_ON(); LED_B_OFF(); LED_C_OFF();\r
\r
clear_trace();\r
+ set_tracing(true);\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
if(!iso14443a_select_card(uid, NULL, NULL, true, 0)) {\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
clear_trace();\r
-\r
+ set_tracing(true);\r
+ \r
if(!iso14443a_select_card(NULL, NULL, NULL, true, 0)) {\r
if (MF_DBGLEVEL >= 1) Dbprintf("Can't select card");\r
OnError(0);\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
clear_trace();\r
-\r
+ set_tracing(true);\r
+ \r
if(!iso14443a_select_card(NULL, NULL, NULL, true, 0)) {\r
if (MF_DBGLEVEL >= 1) Dbprintf("Can't select card");\r
OnError(0);\r
LED_C_OFF();\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
\r
- if (clearTrace) clear_trace();\r
+ if (clearTrace) \r
+ clear_trace();\r
+ \r
set_tracing(TRUE);\r
\r
- for (i = 0; i < keyCount; i++) {\r
- if(mifare_classic_halt(pcs, cuid)) {\r
+ for (i = 0; i < keyCount; ++i) {\r
+ if (mifare_classic_halt(pcs, cuid))\r
if (MF_DBGLEVEL >= 1) Dbprintf("ChkKeys: Halt error");\r
- }\r
\r
- if(!iso14443a_select_card(uid, NULL, &cuid, true, 0)) {\r
+ if (!iso14443a_select_card(uid, NULL, &cuid, true, 0)) {\r
if (OLD_MF_DBGLEVEL >= 1) Dbprintf("ChkKeys: Can't select card");\r
break;\r
- };\r
+ }\r
\r
ui64Key = bytes_to_num(datain + i * 6, 6);\r
- if(mifare_classic_auth(pcs, cuid, blockNo, keyType, ui64Key, AUTH_FIRST)) {\r
+ if (mifare_classic_auth(pcs, cuid, blockNo, keyType, ui64Key, AUTH_FIRST))\r
continue;\r
- };\r
\r
isOK = 1;\r
break;\r
}\r
- \r
- // ----------------------------- crypto1 destroy\r
crypto1_destroy(pcs);\r
\r
LED_B_ON();\r
cmd_send(CMD_ACK,isOK,0,0,datain + i * 6,6);\r
- LED_B_OFF();\r
-\r
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);\r
LEDsoff();\r
set_tracing(FALSE);\r
\r
iso14443a_setup(FPGA_HF_ISO14443A_READER_LISTEN);\r
clear_trace();\r
+ set_tracing(true);\r
\r
int len = iso14443a_select_card(uid, NULL, &cuid, true, 0);\r
if(!len) {\r