};\r
\r
if(mifare_classic_halt(NULL, cuid)) {\r
- if (MF_DBGLEVEL >= 1) Dbprintf("Halt error");\r
+ if (MF_DBGLEVEL >= 4) Dbprintf("INFO - Tag answered the 'Halt' command");\r
break;\r
};\r
}; \r
\r
if (workFlags & 0x04) {\r
if (mifare_classic_halt(NULL, cuid)) {\r
- if (MF_DBGLEVEL >= 1) Dbprintf("Halt error");\r
+ if (MF_DBGLEVEL >= 4) Dbprintf("INFO - Tag answered the 'Halt' command");\r
break;\r
};\r
}\r
\r
if (workFlags & 0x04) {\r
if (mifare_classic_halt(NULL, cuid)) {\r
- if (MF_DBGLEVEL >= 1) Dbprintf("Halt error");\r
+ if (MF_DBGLEVEL >= 4) Dbprintf("INFO - Tag answered the 'Halt' command");\r
break;\r
};\r
}\r
isOK = 0;\r
};\r
\r
- if (mifare_classic_halt(NULL, 0)) {\r
- isOK = 0;\r
- };\r
+ // removed the if, since some magic tags misbehavies and send an answer to it.\r
+ mifare_classic_halt(NULL, 0);\r
\r
cmd_send(CMD_ACK,isOK,0,0,0,0);\r
}\r