Allow disabling buffer soc settings without warnings
This commit is contained in:
parent
63dc1a4daa
commit
c46c9372ac
1 changed files with 2 additions and 2 deletions
|
|
@ -183,11 +183,11 @@ func NewSiteFromConfig(
|
|||
return nil, errors.New("missing either grid or pv meter")
|
||||
}
|
||||
|
||||
if site.BufferStartSoc <= site.BufferSoc {
|
||||
if site.BufferStartSoc != 0 && site.BufferStartSoc <= site.BufferSoc {
|
||||
site.log.WARN.Println("bufferStartSoc must be larger than bufferSoc")
|
||||
}
|
||||
|
||||
if site.PrioritySoc > site.BufferSoc {
|
||||
if site.BufferSoc != 0 && site.BufferSoc <= site.PrioritySoc {
|
||||
site.log.WARN.Println("bufferSoc must be larger than prioritySoc")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue