mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-07 16:48:15 +08:00
Use GetTickCountDelta when possible
This commit is contained in:
parent
f9157c946d
commit
8ea04a42a6
2 changed files with 3 additions and 3 deletions
|
@ -2044,7 +2044,7 @@ bool GetIso14443aAnswerFromTag_Thinfilm(uint8_t *receivedResponse, uint8_t *rec
|
|||
}
|
||||
}
|
||||
|
||||
if (GetTickCount() - receive_timer > 100)
|
||||
if (GetTickCountDelta(receive_timer) > 100)
|
||||
break;
|
||||
}
|
||||
*received_len = Demod.len;
|
||||
|
@ -2094,7 +2094,7 @@ static int GetIso14443aAnswerFromTag(uint8_t *receivedResponse, uint8_t *receive
|
|||
}
|
||||
|
||||
// timeout already in ms + 100ms guard time
|
||||
if (GetTickCount() - receive_timer > timeout + 100)
|
||||
if (GetTickCountDelta(receive_timer) > timeout + 100)
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -1106,7 +1106,7 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1
|
|||
Dbprintf("[MFEMUL_AUTH1] AUTH COMPLETED for sector %d with key %c. time=%d",
|
||||
cardAUTHSC,
|
||||
cardAUTHKEY == 0 ? 'A' : 'B',
|
||||
GetTickCount() - authTimer
|
||||
GetTickCountDelta(authTimer)
|
||||
);
|
||||
}
|
||||
LED_C_ON();
|
||||
|
|
Loading…
Reference in a new issue