summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2012-03-23 08:22:34 +1300
committerMike Beattie <mike@ethernal.org>2012-03-23 08:22:34 +1300
commite9f7ad821642c9324de5dbd6dab807813065c898 (patch)
tree1cb71dbe81379839ad30ced4f734bf60ffcbe901
parent336bf8c22dacbf051e163f005869072df6266b02 (diff)
Fix NTP bug - library change!
Signed-off-by: Mike Beattie <mike@ethernal.org>
-rw-r--r--HouseControl.ino2
1 files changed, 1 insertions, 1 deletions
diff --git a/HouseControl.ino b/HouseControl.ino
index 4a9c700..b64e8f0 100644
--- a/HouseControl.ino
+++ b/HouseControl.ino
@@ -451,7 +451,7 @@ void loop() {
if ((time - lastNTPtime) >= 600)
sendNTPpacket();
- if (NTPSocket.available() >= 46)
+ if (NTPSocket.parsePacket() >= 46)
parseNTPresponse();
if (frontDoor.controlActive && ((time - frontDoor.controlTime) >= 10) ) {