From a88d7e1ce6fcfe940f818f99ef5310bb34850645 Mon Sep 17 00:00:00 2001 From: omersiar Date: Mon, 14 Nov 2016 10:32:32 +0200 Subject: [PATCH] Fix #211 --- changes.txt | 2 +- examples/MifareClassicValueBlock/MifareClassicValueBlock.ino | 4 ++-- examples/ReadNUID/ReadNUID.ino | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/changes.txt b/changes.txt index 6bb0d24..c7ef5a0 100644 --- a/changes.txt +++ b/changes.txt @@ -3,7 +3,7 @@ 14 Nov 2016, unreleased - Removed problematic example examples/servo_motor/servo_motor.ino - Added examples/AccessControl/AccessControl.ino - +- Fixed minor issues reported in #211 26 Aug 2016, v1.1.9 diff --git a/examples/MifareClassicValueBlock/MifareClassicValueBlock.ino b/examples/MifareClassicValueBlock/MifareClassicValueBlock.ino index 2116bc3..1d78832 100644 --- a/examples/MifareClassicValueBlock/MifareClassicValueBlock.ino +++ b/examples/MifareClassicValueBlock/MifareClassicValueBlock.ino @@ -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); diff --git a/examples/ReadNUID/ReadNUID.ino b/examples/ReadNUID/ReadNUID.ino index 9428e76..9ff99da 100644 --- a/examples/ReadNUID/ReadNUID.ino +++ b/examples/ReadNUID/ReadNUID.ino @@ -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);