add firmware version to ShowReaderDetails

This commit is contained in:
Rotzbua
2015-04-14 02:16:36 +02:00
parent 956df8e434
commit 7da08d8fd8

View File

@@ -62,7 +62,9 @@ void ShowReaderDetails() {
byte v = mfrc522.PCD_ReadRegister(mfrc522.VersionReg); byte v = mfrc522.PCD_ReadRegister(mfrc522.VersionReg);
Serial.print(F("Firmware Version: 0x")); Serial.print(F("Firmware Version: 0x"));
Serial.print(v, HEX); Serial.print(v, HEX);
if (v == 0x91) if (v == 0x90)
Serial.print(F(" = v0.0"));
else if (v == 0x91)
Serial.print(F(" = v1.0")); Serial.print(F(" = v1.0"));
else if (v == 0x92) else if (v == 0x92)
Serial.print(F(" = v2.0")); Serial.print(F(" = v2.0"));