mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 18:25:07 +08:00
SLCK detection: use more available SpinDelay
This commit is contained in:
parent
bf3ae7f007
commit
f9157c946d
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ void SendStatus(void) {
|
|||
uint32_t delta_time = 0;
|
||||
uint32_t start_time = GetTickCount();
|
||||
#define SLCK_CHECK_MS 50
|
||||
WaitMS(SLCK_CHECK_MS);
|
||||
SpinDelay(SLCK_CHECK_MS);
|
||||
delta_time = GetTickCountDelta(start_time);
|
||||
if ((delta_time < SLCK_CHECK_MS - 1) || (delta_time > SLCK_CHECK_MS + 1)) {
|
||||
// error > 2% with SLCK_CHECK_MS=50
|
||||
|
|
Loading…
Reference in a new issue