Browse Source

0.7.30

* attempt to improve speed / repsonse times (Schwuppdizitaet) #1075
pull/1093/head
lumapu 2 years ago
parent
commit
995c7ea5fb
  1. 3
      src/CHANGES.md
  2. 10
      src/app.cpp
  3. 2
      src/defines.h

3
src/CHANGES.md

@ -1,5 +1,8 @@
# Development Changes
## 0.7.30 - 2023-08-10
* attempt to improve speed / repsonse times (Schwuppdizitaet) #1075
## 0.7.29 - 2023-08-09
* MqTT alarm data was never sent, fixed
* REST API: added alarm data

10
src/app.cpp

@ -131,7 +131,6 @@ void app::loop(void) {
if (mInnerLoopCb)
mInnerLoopCb();
#if !defined(ETHERNET)
mImprov.tickSerial();
#endif
}
@ -248,13 +247,14 @@ void app::regularTickers(void) {
if (mConfig->plugin.display.type != 0)
everySec(std::bind(&DisplayType::tickerSecond, &mDisplay), "disp");
every(std::bind(&PubSerialType::tick, &mPubSerial), mConfig->serial.interval, "uart");
//everySec(std::bind(&Improv::tickSerial, &mImprov), "impro");
// every([this]() {mPayload.simulation();}, 15, "simul");
#if !defined(ETHERNET)
everySec([this]() { mImprov.tickSerial(); }, "impro");
#endif
// every([this]() { mPayload.simulation();}, 15, "simul");
}
#if defined(ETHERNET)
void app::onNtpUpdate(bool gotTime)
{
void app::onNtpUpdate(bool gotTime) {
uint32_t nxtTrig = 5; // default: check again in 5 sec
if (gotTime || mTimestamp != 0) {
this->updateNtp();

2
src/defines.h

@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 7
#define VERSION_PATCH 29
#define VERSION_PATCH 30
//-------------------------------------
typedef struct {

Loading…
Cancel
Save