Gotta reset cursor to 0 during log clear

This commit is contained in:
Will Bradley 2012-08-24 04:48:12 -07:00
parent f96d5c33cd
commit 886be22246

View File

@ -343,7 +343,7 @@ void loop() // Main branch, runs over and ov
} }
} }
else { else {
client.println("err:badquery"); client.println("err:query");
} }
} }
if(readString.indexOf("?a") > 0) { //list all users if(readString.indexOf("?a") > 0) { //list all users
@ -404,7 +404,7 @@ void loop() // Main branch, runs over and ov
PROGMEMprintln(client,open2); PROGMEMprintln(client,open2);
} }
else { else {
client.println("err:baddoor#"); client.println("err:door#");
} }
} }
} }
@ -436,7 +436,7 @@ void loop() // Main branch, runs over and ov
PROGMEMprintln(client,unlock2); PROGMEMprintln(client,unlock2);
} }
else { else {
client.println("err:baddoor#"); client.println("err:door#");
} }
} }
} }
@ -514,10 +514,11 @@ void loop() // Main branch, runs over and ov
logKeys[i] = 0; logKeys[i] = 0;
logData[i] = 0; logData[i] = 0;
} }
logCursor = 0;
addToLog('z',0); addToLog('z',0);
logDate(); logDate();
client.println("clrd"); client.println("y");
} }
else{ else{
PROGMEMprintln(client,noauth); PROGMEMprintln(client,noauth);