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