Skip to content

Commit 0d4f208

Browse files
committed
Cleared numberOfKnocks variable
Fixed according to #2294
1 parent 7e0dd9b commit 0d4f208

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/shared/examples/10.StarterKit/p12_KnockLock/p12_KnockLock.ino

+2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ void loop() {
140140
digitalWrite(greenLed, HIGH);
141141
digitalWrite(redLed, LOW);
142142
Serial.println("the box is unlocked!");
143+
144+
numberOfKnocks = 0;
143145
}
144146
}
145147
}

0 commit comments

Comments
 (0)