mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
chg: #define rename
This commit is contained in:
parent
7a71df3aec
commit
0eca7e3977
2 changed files with 4 additions and 3 deletions
|
@ -361,10 +361,10 @@ int mifare_ultra_readblockEx(uint8_t blockNo, uint8_t *blockData) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int mifare_ultra_readblock(uint8_t blockNo, uint8_t *blockData) {
|
int mifare_ultra_readblock(uint8_t blockNo, uint8_t *blockData) {
|
||||||
#define MFU_MAX_CRC_RETRIES 5
|
#define MFU_MAX_RETRIES 5
|
||||||
uint8_t res;
|
uint8_t res;
|
||||||
|
|
||||||
for (uint8_t retries = 0; retries < MFU_MAX_CRC_RETRIES; ++retries) {
|
for (uint8_t retries = 0; retries < MFU_MAX_RETRIES; ++retries) {
|
||||||
res = mifare_ultra_readblockEx(blockNo, blockData);
|
res = mifare_ultra_readblockEx(blockNo, blockData);
|
||||||
|
|
||||||
// break if OK, or NACK.
|
// break if OK, or NACK.
|
||||||
|
|
|
@ -1812,7 +1812,8 @@ int CmdHF14AMfUDump(const char *Cmd){
|
||||||
uint8_t get_signature[32];
|
uint8_t get_signature[32];
|
||||||
memset( get_signature, 0, sizeof(get_signature) );
|
memset( get_signature, 0, sizeof(get_signature) );
|
||||||
|
|
||||||
// not ul_c and not std ul then attempt to get deeper info
|
// not ul_c and not std ul then attempt to collect info like
|
||||||
|
// VERSION, SIGNATURE, COUNTERS, TEARING, PACK,
|
||||||
if (!(tagtype & UL_C || tagtype & UL)) {
|
if (!(tagtype & UL_C || tagtype & UL)) {
|
||||||
//attempt to read pack
|
//attempt to read pack
|
||||||
if (!ul_auth_select( &card, tagtype, true, authKeyPtr, get_pack, sizeof(get_pack))) {
|
if (!ul_auth_select( &card, tagtype, true, authKeyPtr, get_pack, sizeof(get_pack))) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue