setLimitSoc sets the session limit soc (no mutex)
(soc int)
| 296 | |
| 297 | // setLimitSoc sets the session limit soc (no mutex) |
| 298 | func (lp *Loadpoint) setLimitSoc(soc int) { |
| 299 | lp.limitSoc = soc |
| 300 | lp.publish(keys.LimitSoc, soc) |
| 301 | lp.settings.SetInt(keys.LimitSoc, int64(soc)) |
| 302 | } |
| 303 | |
| 304 | // SetLimitSoc sets the session soc limit |
| 305 | func (lp *Loadpoint) SetLimitSoc(soc int) { |
no test coverage detected