NFC: Removing delay function
This commit is contained in:
parent
0e14688f85
commit
4023cfcb3d
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user