From b0918a52c2f66beedc65009a573c1c877cb25e1b Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Tue, 10 Dec 2024 17:00:21 +0100 Subject: [PATCH] rename --- core/loadpoint_plan.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/loadpoint_plan.go b/core/loadpoint_plan.go index 2b4ec3813..2fcff9c50 100644 --- a/core/loadpoint_plan.go +++ b/core/loadpoint_plan.go @@ -28,8 +28,8 @@ func (lp *Loadpoint) setPlanActive(active bool) { } } -// finishedPlan deletes the charging plan, either loadpoint or vehicle -func (lp *Loadpoint) finishedPlan() { +// finishePlan deletes the charging plan, either loadpoint or vehicle +func (lp *Loadpoint) finishePlan() { if lp.repeatingPlanning() { return // noting to do } else if !lp.socBasedPlanning() { @@ -106,7 +106,7 @@ func (lp *Loadpoint) plannerActive() (active bool) { // keep overrunning plans as long as a vehicle is connected if lp.clock.Until(planTime) < 0 && (!lp.planActive || !lp.connected()) { lp.log.DEBUG.Println("plan: deleting expired plan") - lp.finishedPlan() + lp.finishePlan() return false } @@ -119,7 +119,7 @@ func (lp *Loadpoint) plannerActive() (active bool) { return true } - lp.finishedPlan() + lp.finishePlan() return false }