From 5d91c5f6b014dc7d7f3864188e6a858600080723 Mon Sep 17 00:00:00 2001 From: Stephan Eisfeld Date: Thu, 9 Aug 2018 12:08:22 +0200 Subject: [PATCH] fixes edge case when detecting nfc tags --- community/seisfeld/tonuino.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/community/seisfeld/tonuino.ino b/community/seisfeld/tonuino.ino index a00ac44..923f068 100644 --- a/community/seisfeld/tonuino.ino +++ b/community/seisfeld/tonuino.ino @@ -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 // ####################################