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);
|
||||
|
||||
Reference in New Issue
Block a user