mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Merge pull request #3267 from agdl/KnockLockFix
Cleared numberOfKnocks variable
This commit is contained in:
@ -140,6 +140,8 @@ void loop() {
|
|||||||
digitalWrite(greenLed, HIGH);
|
digitalWrite(greenLed, HIGH);
|
||||||
digitalWrite(redLed, LOW);
|
digitalWrite(redLed, LOW);
|
||||||
Serial.println("the box is unlocked!");
|
Serial.println("the box is unlocked!");
|
||||||
|
|
||||||
|
numberOfKnocks = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user