summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2012-03-22 18:45:12 +1300
committerMike Beattie <mike@ethernal.org>2012-03-22 18:45:12 +1300
commita87dead663112fddb2354497f2db3aec72c49c0b (patch)
tree567da6f676ae5ddb3710ec1555fee29fc01fe9b3
parent59da541d2d3e336fc7d48527303c4989756bdf2d (diff)
Whitespace
Signed-off-by: Mike Beattie <mike@ethernal.org>
-rw-r--r--HouseControl.ino16
1 files changed, 8 insertions, 8 deletions
diff --git a/HouseControl.ino b/HouseControl.ino
index be91b1f..3b0f078 100644
--- a/HouseControl.ino
+++ b/HouseControl.ino
@@ -43,11 +43,11 @@ struct st_config {
byte def_gateway[4];
byte ntpServer[4];
- unsigned int UTC_offset;
+ unsigned int UTC_offset;
byte notifyHost[4];
unsigned int notifyPort;
-
+
byte dawn;
byte dusk;
};
@@ -120,7 +120,7 @@ const char* ip_to_str(const uint8_t* ipAddr) {
/*********************************************************************************/
/* NTP/Time functions */
-// send an NTP request to the time server at the given address
+// send an NTP request to the time server at the given address
void sendNTPpacket() {
// Packet buffer
byte pb[48];
@@ -158,9 +158,9 @@ void parseNTPresponse() {
ntp_time = ntp_time << 8 | pb[i];
// part of the fractional part
- // could be 4 bytes but this is more precise than the 1307 RTC
+ // could be 4 bytes but this is more precise than the 1307 RTC
// which has a precision of ONE second
- // in fact one byte is sufficient for 1307
+ // in fact one byte is sufficient for 1307
ntp_time_frac = ((long)pb[44] * 256 + pb[45]) / 65536.0;
// convert NTP to UNIX time, differs seventy years = 2208988800 seconds
@@ -173,7 +173,7 @@ void parseNTPresponse() {
if (ntp_time_frac > 0.4) ntp_time++; // adjust fractional part, see above
setTime(ntp_time);
-
+
lastNTPtime = now();
}
@@ -404,7 +404,7 @@ boolean readDoorState (struct st_door *door) {
} else {
door->open = !door->closed;
}
-
+
if ((door->last_open != door->open) || (door->last_closed != door->closed))
return true;
@@ -531,7 +531,7 @@ void loop() {
httpServer.processConnection();
-
+
/* Toggle Status LED so we know things are OK */
if (time != blinkTime) {
blinkTime = time;