* fix captions in `/history #1532
* fix get NTP time #1529 #1530
* fix translation #1516
This commit is contained in:
lumapu 2024-03-26 23:39:09 +01:00
parent d5ed0272e9
commit 4b75e72bf3
7 changed files with 19 additions and 24 deletions

View file

@ -245,17 +245,12 @@ void app::tickNtpUpdate(void) {
if (!mNtpReceived)
mNetwork->updateNtpTime();
else
else {
nxtTrig = mConfig->ntp.interval * 60; // check again in configured interval
mNtpReceived = false;
}
updateNtp();
nxtTrig = mConfig->ntp.interval * 60; // check again in 12h
// immediately start communicating
if (mSendFirst) {
mSendFirst = false;
once(std::bind(&app::tickSend, this), 1, "senOn");
}
mMqttReconnect = false;
@ -532,7 +527,6 @@ void app::resetSystem(void) {
mTimestamp = 1;
#endif
mSendFirst = true;
mAllIvNotAvail = true;
mSunrise = 0;