Minimal changes
This commit is contained in:
parent
b569c1e572
commit
1703e3260e
@ -188,7 +188,7 @@ String getTime(void){
|
|||||||
//Check if need an NTP call to check current time
|
//Check if need an NTP call to check current time
|
||||||
if((mTriggerUpdate == 0) || (millis() - mTriggerUpdate > UPDATE_PERIOD_h * 60 * 60 * 1000)){ //60 sec. * 60 min * 1000ms
|
if((mTriggerUpdate == 0) || (millis() - mTriggerUpdate > UPDATE_PERIOD_h * 60 * 60 * 1000)){ //60 sec. * 60 min * 1000ms
|
||||||
if(WiFi.status() == WL_CONNECTED) {
|
if(WiFi.status() == WL_CONNECTED) {
|
||||||
if(timeClient.update()) mTriggerUpdate = millis();
|
if(timeClient.update()) mTriggerUpdate = millis();
|
||||||
initialTime = timeClient.getEpochTime(); // Guarda la hora inicial (en segundos desde 1970)
|
initialTime = timeClient.getEpochTime(); // Guarda la hora inicial (en segundos desde 1970)
|
||||||
Serial.print("TimeClient NTPupdateTime ");
|
Serial.print("TimeClient NTPupdateTime ");
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#ifndef VERSION_H
|
#ifndef VERSION_H
|
||||||
#define VERSION_H
|
#define VERSION_H
|
||||||
|
|
||||||
#define CURRENT_VERSION "V1.6.1"
|
#define CURRENT_VERSION "V1.6.2"
|
||||||
|
|
||||||
#endif // VERSION_H
|
#endif // VERSION_H
|
||||||
|
Loading…
Reference in New Issue
Block a user