BF: get powerTotal from PowerMeter

This commit is contained in:
Eugen 2023-03-22 08:21:34 +01:00 committed by GitHub
parent 05a5b2367b
commit effd4e89ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ int32_t PowerLimiterClass::calcPowerLimit(std::shared_ptr<InverterAbstract> inve
{
CONFIG_T& config = Configuration.get();
int32_t newPowerLimit = round(_powerMeter1Power + _powerMeter2Power + _powerMeter3Power);
int32_t newPowerLimit = round(PowerMeter.getPowerTotal());
float efficency = inverter->Statistics()->getChannelFieldValue(TYPE_AC, (ChannelNum_t) config.PowerLimiter_InverterChannelId, FLD_EFF);
int32_t victronChargePower = this->getDirectSolarPower();