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

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

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

View File

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