SetSoc sets the PV mode threshold settings
(soc loadpoint.SocConfig)
| 457 | |
| 458 | // SetSoc sets the PV mode threshold settings |
| 459 | func (lp *Loadpoint) SetSocConfig(soc loadpoint.SocConfig) { |
| 460 | lp.Lock() |
| 461 | defer lp.Unlock() |
| 462 | |
| 463 | lp.log.DEBUG.Printf("set soc config: %+v", soc) |
| 464 | |
| 465 | // apply immediately |
| 466 | lp.setSocConfig(soc) |
| 467 | } |
| 468 | |
| 469 | // GetUI returns the display-only ui settings |
| 470 | func (lp *Loadpoint) GetUI() loadpoint.UIConfig { |
nothing calls this directly
no test coverage detected