From bdeac02fad5bb5b04e1147259785bc8268bee9d8 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sun, 4 Feb 2024 12:20:39 +0100 Subject: [PATCH] Allow buffersoc = prioritysoc (#12042) --- core/site_api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/site_api.go b/core/site_api.go index 8a35ee052..b098e1e1e 100644 --- a/core/site_api.go +++ b/core/site_api.go @@ -183,8 +183,8 @@ func (site *Site) SetBufferSoc(soc float64) error { return ErrBatteryNotConfigured } - if soc != 0 && soc <= site.prioritySoc { - return errors.New("buffer soc must be larger than priority soc") + if soc != 0 && soc < site.prioritySoc { + return errors.New("buffer soc must not be smaller than priority soc") } if site.bufferStartSoc != 0 && soc > site.bufferStartSoc {