Skip to content

Commit

Permalink
add counterfeit chip detection to print version
Browse files Browse the repository at this point in the history
reference #427
  • Loading branch information
Rotzbua authored Oct 13, 2018
1 parent 3acbbc6 commit c8e5bf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MFRC522.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8e5bf0

Please sign in to comment.