diff --git a/src/CHANGES.md b/src/CHANGES.md index 0e90a4f5..d5bc62a9 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -1,5 +1,9 @@ # Development Changes +## 0.8.119 - 2024-05-16 +* fix reset values at midnight if WiFi isn't available #1620 +* fix typo in English versions + ## 0.8.118 - 2024-05-10 * possible fix reset max values #1609 * slightly improved WiFi reconnect diff --git a/src/app.cpp b/src/app.cpp index b2f3c615..accd0c87 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -148,12 +148,14 @@ void app::loop(void) { //----------------------------------------------------------------------------- void app::onNetwork(bool gotIp) { mNetworkConnected = gotIp; - ah::Scheduler::resetTicker(); - regularTickers(); //reinstall regular tickers - every(std::bind(&app::tickSend, this), mConfig->inst.sendInterval, "tSend"); - mTickerInstallOnce = true; - mSunrise = 0; // needs to be set to 0, to reinstall sunrise and ivComm tickers! - once(std::bind(&app::tickNtpUpdate, this), 2, "ntp2"); + if(gotIp) { + ah::Scheduler::resetTicker(); + regularTickers(); //reinstall regular tickers + every(std::bind(&app::tickSend, this), mConfig->inst.sendInterval, "tSend"); + mTickerInstallOnce = true; + mSunrise = 0; // needs to be set to 0, to reinstall sunrise and ivComm tickers! + once(std::bind(&app::tickNtpUpdate, this), 2, "ntp2"); + } } //----------------------------------------------------------------------------- diff --git a/src/defines.h b/src/defines.h index b68eabfd..3e7adc01 100644 --- a/src/defines.h +++ b/src/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 8 -#define VERSION_PATCH 118 +#define VERSION_PATCH 119 //------------------------------------- typedef struct { uint8_t ch; diff --git a/src/web/lang.json b/src/web/lang.json index 535dfba1..901b53ed 100644 --- a/src/web/lang.json +++ b/src/web/lang.json @@ -340,7 +340,7 @@ }, { "token": "INV_RESET_MAX_VALUES", - "en": "Inlude reset 'max' values", + "en": "Include reset 'max' values", "de": "Maximalwerte auch zurücksetzen" }, {