Skip to content

Commit

Permalink
fix: change config.Vedirect to config.SolarCharger
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBoehm committed Jan 8, 2025
1 parent 2cc164f commit 9e73fcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PowerLimiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ void PowerLimiterClass::loop()
config.PowerLimiter.VoltageStopThreshold,
config.PowerLimiter.BatterySocStopThreshold);

if (config.Vedirect.Enabled && config.PowerLimiter.SolarPassThroughEnabled) {
if (config.SolarCharger.Enabled && config.PowerLimiter.SolarPassThroughEnabled) {
MessageOutput.printf("[DPL] full solar-passthrough %s, start %.2f V or %u %%, stop %.2f V\r\n",
(isFullSolarPassthroughActive()?"active":"dormant"),
config.PowerLimiter.FullSolarPassThroughStartVoltage,
Expand Down Expand Up @@ -676,7 +676,7 @@ uint16_t PowerLimiterClass::getSolarPassthroughPower()
{
auto const& config = Configuration.get();

if (!config.Vedirect.Enabled
if (!config.SolarCharger.Enabled
|| !config.PowerLimiter.SolarPassThroughEnabled
|| isBelowStopThreshold()
|| !SolarCharger.isDataValid()) {
Expand Down Expand Up @@ -851,7 +851,7 @@ bool PowerLimiterClass::isFullSolarPassthroughActive()
if (!usesBatteryPoweredInverter()) { return false; }

// solarcharger is needed for solar passthrough
if (!config.Vedirect.Enabled) { return false; }
if (!config.SolarCharger.Enabled) { return false; }

// We only do full solar PT if general solar PT is enabled
if (!config.PowerLimiter.SolarPassThroughEnabled) { return false; }
Expand Down

0 comments on commit 9e73fcc

Please sign in to comment.