Allow buffersoc = prioritysoc (#12042)
This commit is contained in:
parent
a440cda077
commit
bdeac02fad
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue