mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-06 12:41:37 +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
10
src/app.cpp
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue