NFC: Removing delay function

This commit is contained in:
Guska 2024-01-19 11:58:13 +01:00
parent 0e14688f85
commit 4023cfcb3d

View File

@ -11,8 +11,7 @@ String NfcReader::ReadNfc()
this->uid.clear(); this->uid.clear();
if (!this->mfrc522->PICC_IsNewCardPresent() || if (!this->mfrc522->PICC_IsNewCardPresent() ||
!this->mfrc522->PICC_ReadCardSerial()) { !this->mfrc522->PICC_ReadCardSerial()) {
delay(200); return ("0");
return "0";
} }
for (unsigned int i = 0; i < this->mfrc522->uid.size; i++) { for (unsigned int i = 0; i < this->mfrc522->uid.size; i++) {
if (this->mfrc522->uid.uidByte[i] < 0xF) { if (this->mfrc522->uid.uidByte[i] < 0xF) {