mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-10 22:51:36 +02:00
0.7.30
* attempt to improve speed / repsonse times (Schwuppdizitaet) #1075
This commit is contained in:
parent
e5b5972cae
commit
995c7ea5fb
3 changed files with 9 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
||||||
# Development Changes
|
# Development Changes
|
||||||
|
|
||||||
|
## 0.7.30 - 2023-08-10
|
||||||
|
* attempt to improve speed / repsonse times (Schwuppdizitaet) #1075
|
||||||
|
|
||||||
## 0.7.29 - 2023-08-09
|
## 0.7.29 - 2023-08-09
|
||||||
* MqTT alarm data was never sent, fixed
|
* MqTT alarm data was never sent, fixed
|
||||||
* REST API: added alarm data
|
* REST API: added alarm data
|
||||||
|
|
10
src/app.cpp
10
src/app.cpp
|
@ -131,7 +131,6 @@ void app::loop(void) {
|
||||||
if (mInnerLoopCb)
|
if (mInnerLoopCb)
|
||||||
mInnerLoopCb();
|
mInnerLoopCb();
|
||||||
#if !defined(ETHERNET)
|
#if !defined(ETHERNET)
|
||||||
mImprov.tickSerial();
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,13 +247,14 @@ void app::regularTickers(void) {
|
||||||
if (mConfig->plugin.display.type != 0)
|
if (mConfig->plugin.display.type != 0)
|
||||||
everySec(std::bind(&DisplayType::tickerSecond, &mDisplay), "disp");
|
everySec(std::bind(&DisplayType::tickerSecond, &mDisplay), "disp");
|
||||||
every(std::bind(&PubSerialType::tick, &mPubSerial), mConfig->serial.interval, "uart");
|
every(std::bind(&PubSerialType::tick, &mPubSerial), mConfig->serial.interval, "uart");
|
||||||
//everySec(std::bind(&Improv::tickSerial, &mImprov), "impro");
|
#if !defined(ETHERNET)
|
||||||
// every([this]() {mPayload.simulation();}, 15, "simul");
|
everySec([this]() { mImprov.tickSerial(); }, "impro");
|
||||||
|
#endif
|
||||||
|
// every([this]() { mPayload.simulation();}, 15, "simul");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(ETHERNET)
|
#if defined(ETHERNET)
|
||||||
void app::onNtpUpdate(bool gotTime)
|
void app::onNtpUpdate(bool gotTime) {
|
||||||
{
|
|
||||||
uint32_t nxtTrig = 5; // default: check again in 5 sec
|
uint32_t nxtTrig = 5; // default: check again in 5 sec
|
||||||
if (gotTime || mTimestamp != 0) {
|
if (gotTime || mTimestamp != 0) {
|
||||||
this->updateNtp();
|
this->updateNtp();
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 7
|
#define VERSION_MINOR 7
|
||||||
#define VERSION_PATCH 29
|
#define VERSION_PATCH 30
|
||||||
|
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue