mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-29 18:26:21 +02:00
Bugfix powermeter_dev, log
This commit is contained in:
parent
afd211035c
commit
fe7863bbf5
1 changed files with 3 additions and 2 deletions
|
@ -139,7 +139,7 @@ class ZeroExport {
|
|||
cfgGroup->state = zeroExportState::CONTROLLER;
|
||||
#if defined(ZEROEXPORT_DEV_POWERMETER)
|
||||
cfgGroup->lastRefresh = millis();
|
||||
cfgGroup->state = zeroExportState::PUBLISH;
|
||||
cfgGroup->state = zeroExportState::WAITREFRESH;
|
||||
#endif
|
||||
} else {
|
||||
cfgGroup->wait = 3000;
|
||||
|
@ -433,7 +433,7 @@ class ZeroExport {
|
|||
// Calculate
|
||||
int32_t ivLp = iv->actPowerLimit;
|
||||
int32_t ivPm = iv->getMaxPower();
|
||||
;
|
||||
|
||||
int32_t ivL = (ivPm * ivLp) / 100;
|
||||
int32_t zeL = mCfg->groups[group].inverters[inv].limit;
|
||||
|
||||
|
@ -843,6 +843,7 @@ class ZeroExport {
|
|||
mCfg->groups[group].lastRun = *tsp;
|
||||
|
||||
if (mCfg->debug) mLog["t"] = "groupGetPowermeter";
|
||||
mLog["g"] = group;
|
||||
*doLog = true;
|
||||
|
||||
mCfg->groups[group].pm_P = mPowermeter.getDataAVG(group).P;
|
||||
|
|
Loading…
Add table
Reference in a new issue