Turn of encryption when tag is halted
If we do not turn off encryption after the tag has been halted we will not be able to read a second tag.
This commit is contained in:
2
RFID.cpp
2
RFID.cpp
@@ -481,5 +481,7 @@ void RFID::halt()
|
|||||||
buff[1] = 0;
|
buff[1] = 0;
|
||||||
calculateCRC(buff, 2, &buff[2]);
|
calculateCRC(buff, 2, &buff[2]);
|
||||||
|
|
||||||
|
clearBitMask(Status2Reg, 0x08); // turn off encryption
|
||||||
|
|
||||||
status = MFRC522ToCard(PCD_TRANSCEIVE, buff, 4, buff,&unLen);
|
status = MFRC522ToCard(PCD_TRANSCEIVE, buff, 4, buff,&unLen);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user