From 9e73fccd9d774b73b27b6b0f5d8f674b3f273ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Bo=CC=88hm?= Date: Wed, 8 Jan 2025 21:30:06 +0100 Subject: [PATCH] fix: change config.Vedirect to config.SolarCharger --- src/PowerLimiter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PowerLimiter.cpp b/src/PowerLimiter.cpp index 4ec003545..a026666b4 100644 --- a/src/PowerLimiter.cpp +++ b/src/PowerLimiter.cpp @@ -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, @@ -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()) { @@ -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; }