Skip to content

Commit

Permalink
turn of encryption when we halt the card
Browse files Browse the repository at this point in the history
  • Loading branch information
ljos committed Sep 24, 2013
1 parent fbfe3c9 commit cf77bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MFRC522.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,6 @@ void MFRC522::haltCard() {
buffer[0] = MF_HALT;
buffer[1] = 0;
calculateCRC(buffer, 2, &buffer[2]);

clearBitMask(Status2Reg, 0x08); // turn off encryption
status = commandCard(MFRC522_TRANSCEIVE, buffer, 4, buffer, &len);
}

0 comments on commit cf77bc1

Please sign in to comment.