lockPlanGoal locks the current plan goal to handle overruns (soc-based plans)
(planTime time.Time, soc int, id int)
| 35 | |
| 36 | // lockPlanGoal locks the current plan goal to handle overruns (soc-based plans) |
| 37 | func (lp *Loadpoint) lockPlanGoal(planTime time.Time, soc int, id int) { |
| 38 | lp.planLocked = PlanLock{ |
| 39 | Time: planTime, |
| 40 | Soc: soc, |
| 41 | Id: id, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // setPlanActive updates plan active flag |
| 46 | func (lp *Loadpoint) setPlanActive(active bool) { |
no outgoing calls