// \r
//-----------------------------------------------------------------------------\r
void MifareChkKeys(uint16_t arg0, uint8_t arg1, uint8_t arg2, uint8_t *datain) {\r
- uint8_t blockNo = arg0 & 0xff;\r
- uint8_t keyType = (arg0 >> 8) & 0xff;\r
- bool clearTrace = arg1;\r
+#define STD_SEARCH 1\r
+#define EXT_SEARCH 2\r
+\r
+ uint8_t blockNo = arg0 & 0xFF;\r
+ uint8_t keyType = (arg0 >> 8) & 0xFF;\r
+ //uint8_t searchType = (arg1 >> 8 ) & 0xFF;\r
+ bool clearTrace = arg1 & 0xFF;\r
uint8_t keyCount = arg2;\r
uint64_t ui64Key = 0;\r
\r
\r
continue;\r
}\r
- isOK = 1;\r
- break;\r
+ \r
+ // found a key.\r
+ //\r
+ //if ( searchType == EXT_SEARCH) {\r
+ \r
+ //}\r
+ //else {\r
+ isOK = 1;\r
+ break;\r
+ //}\r
}\r
\r
LED_B_ON();\r