diff options
author | Mike Beattie <mike@ethernal.org> | 2012-03-22 18:08:40 +1300 |
---|---|---|
committer | Mike Beattie <mike@ethernal.org> | 2012-03-22 18:08:40 +1300 |
commit | e49cc2f4d686717888a2f314bbe1cea1e51de270 (patch) | |
tree | da7c93e4aad74a6d1c24b764979c838a57ad37eb /HouseControl.ino | |
parent | 1303c7f39c847a84c5bf31de9749c6dbcda4c4d1 (diff) |
Remove commented Serial debugging code
Signed-off-by: Mike Beattie <mike@ethernal.org>
Diffstat (limited to 'HouseControl.ino')
-rw-r--r-- | HouseControl.ino | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/HouseControl.ino b/HouseControl.ino index 5638cfa..de0b394 100644 --- a/HouseControl.ino +++ b/HouseControl.ino @@ -415,42 +415,6 @@ void loop() { readDoorState(&garageDoor1); readDoorState(&garageDoor2); -/* - if ((time - lastStatTime) > 10) { - lastStatTime = time; - - Serial.println(); - Serial.print("Time:\t"); - PrintDateTime(now()); - Serial.println(); - - Serial.print("Bytes free in SRAM: "); - Serial.println(freeMemory(),DEC); - - Serial.print("Front door: "); - if (frontDoor.closed) { - Serial.print("closed"); - } else { - Serial.print("open"); - } - if (frontDoor.controlActive) { - Serial.println(" UNLOCKED!"); - } else { - Serial.println(); - } - - Serial.print("Garage door: "); - if (garageDoor1.open) { - Serial.println("open"); - } else if (garageDoor1.closed) { - Serial.println("closed"); - } else { - Serial.println(".. moving .."); - } - - } -*/ - if ((time - lastNTPtime) >= 600) sendNTPpacket(); @@ -458,32 +422,13 @@ void loop() { parseNTPresponse(); if (frontDoor.controlActive && ((time - frontDoor.controlTime) >= 10) ) { -// Serial.println("De-activating Front Door strike"); toggleDoorControl(&frontDoor); } if (garageDoor1.controlActive && ((time - garageDoor1.controlTime) >= 1) ) { -// Serial.println("De-toggling garage door switch"); toggleDoorControl(&garageDoor1); } -/* - if (Serial.available() > 0) { - byte inByte = Serial.read(); - if (inByte == 'D') { - Serial.println("Activating Garage door"); - toggleDoorControl(&garageDoor1); - PrintDateTime(garageDoor1.controlTime); - } else if (inByte == 'F') { - Serial.println("Activating Front door strike..."); - toggleDoorControl(&frontDoor); - PrintDateTime(frontDoor.controlTime); - } else { - Serial.print("Unknown command: "); - Serial.println(inByte, BYTE); - } - } -*/ httpServer.processConnection(); |