Fix AccessControl.ino - rm unused var

additional to #353
This commit is contained in:
Rotzbua
2018-01-13 11:04:37 +01:00
committed by GitHub
parent 1e9ca23890
commit f11d979809

View File

@@ -94,7 +94,6 @@ constexpr uint8_t blueLed = 5;
constexpr uint8_t relay = 4; // Set Relay Pin constexpr uint8_t relay = 4; // Set Relay Pin
constexpr uint8_t wipeB = 3; // Button pin for WipeMode constexpr uint8_t wipeB = 3; // Button pin for WipeMode
boolean match = false; // initialize card match to false
boolean programMode = false; // initialize programming mode to false boolean programMode = false; // initialize programming mode to false
boolean replaceMaster = false; boolean replaceMaster = false;
@@ -431,7 +430,7 @@ void deleteID( byte a[] ) {
///////////////////////////////////////// Check Bytes /////////////////////////////////// ///////////////////////////////////////// Check Bytes ///////////////////////////////////
boolean checkTwo ( byte a[], byte b[] ) { boolean checkTwo ( byte a[], byte b[] ) {
for ( uint8_t k = 0; k < 4; k++ ) { // Loop 4 times for ( uint8_t k = 0; k < 4; k++ ) { // Loop 4 times
if ( a[k] != b[k] ) { // IF a != b then set match = false, one fails, all fail if ( a[k] != b[k] ) { // IF a != b then false, because: one fails, all fail
return false; return false;
} }
} }