Fix #211
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
14 Nov 2016, unreleased
|
14 Nov 2016, unreleased
|
||||||
- Removed problematic example examples/servo_motor/servo_motor.ino
|
- Removed problematic example examples/servo_motor/servo_motor.ino
|
||||||
- Added examples/AccessControl/AccessControl.ino
|
- Added examples/AccessControl/AccessControl.ino
|
||||||
|
- Fixed minor issues reported in #211
|
||||||
|
|
||||||
|
|
||||||
26 Aug 2016, v1.1.9
|
26 Aug 2016, v1.1.9
|
||||||
|
|||||||
@@ -166,8 +166,8 @@ void loop() {
|
|||||||
// Check if it matches the desired access pattern already;
|
// Check if it matches the desired access pattern already;
|
||||||
// because if it does, we don't need to write it again...
|
// because if it does, we don't need to write it again...
|
||||||
if ( buffer[6] != trailerBuffer[6]
|
if ( buffer[6] != trailerBuffer[6]
|
||||||
&& buffer[7] != trailerBuffer[7]
|
|| buffer[7] != trailerBuffer[7]
|
||||||
&& buffer[8] != trailerBuffer[8]) {
|
|| buffer[8] != trailerBuffer[8]) {
|
||||||
// They don't match (yet), so write it to the PICC
|
// They don't match (yet), so write it to the PICC
|
||||||
Serial.println(F("Writing new sector trailer..."));
|
Serial.println(F("Writing new sector trailer..."));
|
||||||
status = mfrc522.MIFARE_Write(trailerBlock, trailerBuffer, 16);
|
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;
|
MFRC522::MIFARE_Key key;
|
||||||
|
|
||||||
// Init array that will store new NUID
|
// Init array that will store new NUID
|
||||||
byte nuidPICC[3];
|
byte nuidPICC[4];
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|||||||
Reference in New Issue
Block a user