mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-22 18:57:12 +02:00
improved, but currently compiles with errors
This commit is contained in:
parent
2b4de00a89
commit
cc9ba1b808
12 changed files with 237 additions and 494 deletions
10
src/app.cpp
10
src/app.cpp
|
@ -7,7 +7,7 @@
|
|||
#include "app.h"
|
||||
#include "utils/sun.h"
|
||||
|
||||
#include "plugins/history.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
app::app() : ah::Scheduler {} {}
|
||||
|
||||
|
@ -91,10 +91,7 @@ void app::setup() {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
mTotalPowerHistory = new TotalPowerHistory();
|
||||
mTotalPowerHistory->setup(this, &mSys, mConfig);
|
||||
mYieldDayHistory = new YieldDayHistory();
|
||||
mYieldDayHistory->setup(this, &mSys, mConfig);
|
||||
mHistory.setup(this, &mSys, mConfig, &mTimestamp);
|
||||
|
||||
mPubSerial.setup(mConfig, &mSys, &mTimestamp);
|
||||
|
||||
|
@ -154,8 +151,7 @@ void app::regularTickers(void) {
|
|||
//everySec([this]() { mImprov.tickSerial(); }, "impro");
|
||||
#endif
|
||||
|
||||
everySec(std::bind(&TotalPowerHistory::tickerSecond, mTotalPowerHistory), "totalPowerHistory");
|
||||
everySec(std::bind(&YieldDayHistory::tickerSecond, mYieldDayHistory), "yieldDayHistory");
|
||||
everySec(std::bind(&HistoryType::tickerSecond, mHistory), "hist");
|
||||
}
|
||||
|
||||
#if defined(ETHERNET)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue