Browse Source

Renamed ntpConnect to ntpConfigure

fastled
Xose Pérez 7 years ago
parent
commit
f8c3e4f4c1
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      code/espurna/ntp.ino
  2. +1
    -1
      code/espurna/web.ino
  3. +1
    -1
      code/espurna/wifi.ino

+ 1
- 1
code/espurna/ntp.ino View File

@ -16,7 +16,7 @@ Copyright (C) 2016-2017 by Xose Pérez <xose dot perez at gmail dot com>
// NTP
// -----------------------------------------------------------------------------
void ntpConnect() {
void ntpConfigure() {
NTP.begin(
getSetting("ntpServer1", NTP_SERVER),
getSetting("ntpOffset", NTP_TIME_OFFSET).toInt(),


+ 1
- 1
code/espurna/web.ino View File

@ -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
}


+ 1
- 1
code/espurna/wifi.ino View File

@ -265,7 +265,7 @@ void wifiSetup() {
// NTP connection reset
#if NTP_SUPPORT
if (code == MESSAGE_CONNECTED) {
ntpConnect();
ntpConfigure();
}
#endif


Loading…
Cancel
Save