From 3b30b2773affbfcf077a109b7eade9d6ac5fdcf7 Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 15 Mar 2025 14:50:41 +0100 Subject: [PATCH] Loadpoint: fix reentrant lock Follow-up to https://github.com/evcc-io/evcc/pull/18669 --- core/loadpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index 81f07f9c1..61cb7a562 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -999,7 +999,7 @@ func (lp *Loadpoint) minSocNotReached() bool { } minEnergy := v.Capacity() * float64(minSoc) / 100 / soc.ChargeEfficiency - return minEnergy > 0 && lp.GetChargedEnergy() < minEnergy + return minEnergy > 0 && lp.getChargedEnergy() < minEnergy } // disableUnlessClimater disables the charger unless climate is active