MCPcopy Create free account
hub / github.com/evcc-io/evcc / lockPlanGoal

Method lockPlanGoal

core/loadpoint_plan.go:37–43  ·  view source on GitHub ↗

lockPlanGoal locks the current plan goal to handle overruns (soc-based plans)

(planTime time.Time, soc int, id int)

Source from the content-addressed store, hash-verified

35
36// lockPlanGoal locks the current plan goal to handle overruns (soc-based plans)
37func (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
46func (lp *Loadpoint) setPlanActive(active bool) {

Callers 2

plannerActiveMethod · 0.95
TestPlanLockingFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestPlanLockingFunction · 0.76