Fix #211
This commit is contained in:
@@ -166,8 +166,8 @@ void loop() {
|
||||
// Check if it matches the desired access pattern already;
|
||||
// because if it does, we don't need to write it again...
|
||||
if ( buffer[6] != trailerBuffer[6]
|
||||
&& buffer[7] != trailerBuffer[7]
|
||||
&& buffer[8] != trailerBuffer[8]) {
|
||||
|| buffer[7] != trailerBuffer[7]
|
||||
|| buffer[8] != trailerBuffer[8]) {
|
||||
// They don't match (yet), so write it to the PICC
|
||||
Serial.println(F("Writing new sector trailer..."));
|
||||
status = mfrc522.MIFARE_Write(trailerBlock, trailerBuffer, 16);
|
||||
|
||||
@@ -39,7 +39,7 @@ MFRC522 rfid(SS_PIN, RST_PIN); // Instance of the class
|
||||
MFRC522::MIFARE_Key key;
|
||||
|
||||
// Init array that will store new NUID
|
||||
byte nuidPICC[3];
|
||||
byte nuidPICC[4];
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
|
||||
Reference in New Issue
Block a user