Fix: DPL: use correct channel type to get inverter efficiency

This commit is contained in:
Bernhard Kirchen 2024-04-11 08:13:31 +02:00
parent a9c3e05f05
commit f634f58788

View File

@ -352,7 +352,7 @@ int32_t PowerLimiterClass::inverterPowerDcToAc(std::shared_ptr<InverterAbstract>
CONFIG_T& config = Configuration.get();
float inverterEfficiencyPercent = inverter->Statistics()->getChannelFieldValue(
TYPE_AC, CH0, FLD_EFF);
TYPE_INV, CH0, FLD_EFF);
// fall back to hoymiles peak efficiency as per datasheet if inverter
// is currently not producing (efficiency is zero in that case)