feat: nfc-reader #15

Merged
Clement merged 5 commits from feat/nfc-reader into develop 2024-01-19 11:01:18 +00:00
Showing only changes of commit 4023cfcb3d - Show all commits

View File

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