Skip to content

Commit

Permalink
BF: get powerTotal from PowerMeter
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminius committed Mar 22, 2023
1 parent 05a5b23 commit effd4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PowerLimiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit effd4e8

Please sign in to comment.