From c8e5bf00fcb5e40c0efe71089548be6847a5bba2 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sat, 13 Oct 2018 15:48:29 +0200 Subject: [PATCH] add counterfeit chip detection to print version reference #427 --- src/MFRC522.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MFRC522.cpp b/src/MFRC522.cpp index bf733aa3..df394857 100644 --- a/src/MFRC522.cpp +++ b/src/MFRC522.cpp @@ -1357,6 +1357,7 @@ void MFRC522::PCD_DumpVersionToSerial() { case 0x90: Serial.println(F(" = v0.0")); break; case 0x91: Serial.println(F(" = v1.0")); break; case 0x92: Serial.println(F(" = v2.0")); break; + case 0x12: Serial.println(F(" = counterfeit chip")); break; default: Serial.println(F(" = (unknown)")); } // When 0x00 or 0xFF is returned, communication probably failed