- uint16_t len; \r
- uint8_t receivedAnswer[4] = {0x00};\r
- uint8_t receivedAnswerPar[4] = {0x00};\r
-\r
- len = mifare_sendcmd_short(pcs, pcs == NULL ? false:true, 0x50, 0x00, receivedAnswer, receivedAnswerPar, NULL);\r
- if (len != 0) {\r
- if (MF_DBGLEVEL >= MF_DBG_ERROR) Dbprintf("halt error. response len: %x", len); \r
- return 1;\r
- }\r
+ uint8_t receivedAnswer[4] = {0x00, 0x00, 0x00, 0x00};\r
+ mifare_sendcmd_short(pcs, (pcs == NULL) ? CRYPT_NONE : CRYPT_ALL, 0x50, 0x00, receivedAnswer, NULL, NULL);\r