|
|
@ -128,12 +128,12 @@ void loop() {
|
|
|
|
Serial.print("password> ");
|
|
|
|
Serial.print("password> ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
while (Serial.available() > 0) {
|
|
|
|
if (Serial.available()) {
|
|
|
|
char c = Serial.read();
|
|
|
|
char c = Serial.read();
|
|
|
|
|
|
|
|
|
|
|
|
readString += c;
|
|
|
|
readString += c;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (readString.length() > 0) {
|
|
|
|
if (c == '\n') {
|
|
|
|
Serial.println(readString);
|
|
|
|
Serial.println(readString);
|
|
|
|
|
|
|
|
|
|
|
|
if (readString == pass) {
|
|
|
|
if (readString == pass) {
|
|
|
@ -148,6 +148,7 @@ void loop() {
|
|
|
|
readString = "";
|
|
|
|
readString = "";
|
|
|
|
waitingForPass = 0;
|
|
|
|
waitingForPass = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
currentMillis = millis();
|
|
|
|
currentMillis = millis();
|
|
|
|
|
|
|
|
|