This commit is contained in:
omersiar
2016-11-14 10:32:32 +02:00
parent cb0383e0cb
commit a88d7e1ce6
3 changed files with 4 additions and 4 deletions

View File

@@ -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);