* attempt to improve speed / repsonse times (Schwuppdizitaet) #1075
This commit is contained in:
lumapu 2023-08-10 01:43:43 +02:00
parent e5b5972cae
commit 995c7ea5fb
3 changed files with 9 additions and 6 deletions

View file

@ -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();