Turns out i'm retarded

No longer stopping the cardIO polling thread once we read a card.
This commit is contained in:
Farewell_ 2024-05-18 19:18:42 +02:00
parent e66ea42f54
commit ac39fd08f9

View File

@ -37,8 +37,9 @@ static unsigned int __stdcall reader_poll_thread_proc(void *ctx)
if (HasCard && !usingSmartCard) // A Cardio scan is already in progress, SmartCard doesn't need any extra cooldown. if (HasCard && !usingSmartCard) // A Cardio scan is already in progress, SmartCard doesn't need any extra cooldown.
{ {
Sleep(500); Sleep(500);
return 0;
} }
else
{
uint8_t UID[8] = {0}; uint8_t UID[8] = {0};
@ -92,6 +93,7 @@ static unsigned int __stdcall reader_poll_thread_proc(void *ctx)
printError("%s (%s): Card %02X%02X%02X%02X%02X%02X%02X%02X was rejected, still waiting for WaitTouch()\n", __func__, module, UID[0], UID[1], UID[2], UID[3], UID[4], UID[5], UID[6], UID[7]); printError("%s (%s): Card %02X%02X%02X%02X%02X%02X%02X%02X was rejected, still waiting for WaitTouch()\n", __func__, module, UID[0], UID[1], UID[2], UID[3], UID[4], UID[5], UID[6], UID[7]);
} }
} }
}
return 0; return 0;
} }