From 3e05cba708eb4e3939fe1d28cb9319fc5138e791 Mon Sep 17 00:00:00 2001 From: Rop Date: Sun, 16 Dec 2018 18:05:06 +1000 Subject: [PATCH] Fixed issue #19 --- library.json | 2 +- library.properties | 2 +- src/ezTime.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library.json b/library.json index 377f082..c498db8 100644 --- a/library.json +++ b/library.json @@ -11,7 +11,7 @@ "type": "git", "url": "https://github.com/ropg/ezTime" }, - "version": "0.7.7", + "version": "0.7.8", "framework": "arduino", "platforms": "*", "build": { diff --git a/library.properties b/library.properties index 4867b9d..a7d39e1 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ezTime -version=0.7.7 +version=0.7.8 author=Rop Gonggrijp maintainer=Rop Gonggrijp sentence=ezTime - pronounced "Easy Time" - is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more. diff --git a/src/ezTime.cpp b/src/ezTime.cpp index 33029eb..50fad16 100644 --- a/src/ezTime.cpp +++ b/src/ezTime.cpp @@ -192,7 +192,7 @@ namespace ezt { if (!_initialised) { for (uint8_t n = 0; n < MAX_EVENTS; n++) _events[n] = { 0, NULL }; #ifdef EZTIME_NETWORK_ENABLE - updateNTP(); // Start the cycle of updateNTP running and then setting an event for its next run + if (_ntp_interval) updateNTP(); // Start the cycle of updateNTP running and then setting an event for its next run #endif _initialised = true; }