mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-30 17:26:12 +02:00
0.8.100
* fix captions in `/history #1532 * fix get NTP time #1529 #1530 * fix translation #1516
This commit is contained in:
parent
d5ed0272e9
commit
4b75e72bf3
7 changed files with 19 additions and 24 deletions
12
src/app.cpp
12
src/app.cpp
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue