1
0
mirror of https://github.com/xfjx/TonUINO.git synced 2025-09-03 03:42:41 +02:00

fixes edge case when detecting nfc tags

This commit is contained in:
Stephan Eisfeld
2018-08-09 12:08:22 +02:00
parent dd0a30671f
commit 5d91c5f6b0

View File

@@ -859,7 +859,11 @@ void loop()
// ######################################################################
// nfc tag is unknown but not not blank, ignore
else Serial.println(F("nfc | tag is not one of ours"));
else {
Serial.println(F("nfc | tag is not one of ours"));
mfrc522.PICC_HaltA();
mfrc522.PCD_StopCrypto1();
}
}
// # end - nfc tag is successfully read
// ####################################