From e6f0ced0da67761ffd1b19881ff0675adceda9d0 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 17 Jan 2022 08:50:34 +0100 Subject: [PATCH] chore: minor --- core/loadpoint.go | 2 +- core/soc/estimator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index a01b40ed4..8d6f65703 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -1408,7 +1408,7 @@ func (lp *LoadPoint) Update(sitePower float64, cheap bool, batteryBuffered bool) // track if remote disabled is actually active remoteDisabled := loadpoint.RemoteEnable - // reset detection if soc timer needs be deactived after evaluating the loading strategy + // reset detection if soc timer needs be deactivated after evaluating the loading strategy lp.socTimer.MustValidateDemand() // execute loading strategy diff --git a/core/soc/estimator.go b/core/soc/estimator.go index fe6ae5f47..55b0929c0 100644 --- a/core/soc/estimator.go +++ b/core/soc/estimator.go @@ -121,8 +121,8 @@ func (s *Estimator) SoC(chargedEnergy float64) (float64, error) { s.log.WARN.Printf("vehicle soc (charger): %v (ignored by estimator)", err) } - s.vehicleSoc = f fetchedSoC = &f + s.vehicleSoc = f } }