From f8c3e4f4c190b02ad19c2eaf282430d3a078f34e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 19 Oct 2017 21:42:49 +0200 Subject: [PATCH] Renamed ntpConnect to ntpConfigure --- code/espurna/ntp.ino | 2 +- code/espurna/web.ino | 2 +- code/espurna/wifi.ino | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/espurna/ntp.ino b/code/espurna/ntp.ino index 77391af5..71855842 100644 --- a/code/espurna/ntp.ino +++ b/code/espurna/ntp.ino @@ -16,7 +16,7 @@ Copyright (C) 2016-2017 by Xose PĂ©rez // NTP // ----------------------------------------------------------------------------- -void ntpConnect() { +void ntpConfigure() { NTP.begin( getSetting("ntpServer1", NTP_SERVER), getSetting("ntpOffset", NTP_TIME_OFFSET).toInt(), diff --git a/code/espurna/web.ino b/code/espurna/web.ino index 06f014b5..5d06d68f 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -436,7 +436,7 @@ void _wsParse(AsyncWebSocketClient *client, uint8_t * payload, size_t length) { #endif #if NTP_SUPPORT - if (changedNTP) ntpConnect(); + if (changedNTP) ntpConfigure(); #endif } diff --git a/code/espurna/wifi.ino b/code/espurna/wifi.ino index 4f72d942..b6a039c9 100644 --- a/code/espurna/wifi.ino +++ b/code/espurna/wifi.ino @@ -265,7 +265,7 @@ void wifiSetup() { // NTP connection reset #if NTP_SUPPORT if (code == MESSAGE_CONNECTED) { - ntpConnect(); + ntpConfigure(); } #endif