Update MFC_CHKKEYS_FAST_MAX_KEYS definition
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
1 parent
2059eba7fa
commit
dbadc2b8e0
1 file changed
+3
-1
+3
-1
@@ -552,7 +552,9 @@ typedef struct {
|
||||
} PACKED mf_chkkeys_fast_t;
|
||||
|
||||
// most keys that fit alongside the header in one frame
|
||||
#define MFC_CHKKEYS_FAST_MAX_KEYS ((PM3_CMD_DATA_SIZE - sizeof(mf_chkkeys_fast_t)) / 6)
|
||||
#define MFC_CHKKEYS_FAST_MAX_KEYS \
|
||||
(((PM3_CMD_DATA_SIZE - sizeof(mf_chkkeys_fast_t)) / 6) > 255 ? 255 : \
|
||||
((PM3_CMD_DATA_SIZE - sizeof(mf_chkkeys_fast_t)) / 6))
|
||||
|
||||
// CMD_HF_MIFARE_VALUE payload.
|
||||
// Replaces a 34 byte blob addressed by hardcoded offsets:
|
||||
|
||||
Reference in new issue
Block a user