Battery control: limit at 100%
This commit is contained in:
parent
341101c6b8
commit
0700882648
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ func (m *battery) LimitController(socG func() (float64, error), limitSocS func(f
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return limitSocS(max(soc, m.MinSoc))
|
||||
return limitSocS(min(100, max(soc, m.MinSoc)))
|
||||
|
||||
case api.BatteryCharge:
|
||||
return limitSocS(m.MaxSoc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue