chore: clarify plan/planner active

This commit is contained in:
andig 2023-10-15 16:13:54 +02:00
parent 5919d5c9e6
commit 133afabb95
2 changed files with 2 additions and 2 deletions

View file

@ -153,7 +153,7 @@ type Loadpoint struct {
planner *planner.Planner
targetTime time.Time // time goal
planSlotEnd time.Time // current plan slot end time
planActive bool // plan is active
planActive bool // charge plan exists and has a currently active slot
// cached state
status api.ChargeStatus // Charger status

View file

@ -66,7 +66,7 @@ func (lp *Loadpoint) GetPlan(targetTime time.Time, maxPower float64) (time.Durat
return requiredDuration, plan, err
}
// plannerActive checks if the charging plan has an active slot
// plannerActive checks if the charging plan has a currently active slot
func (lp *Loadpoint) plannerActive() (active bool) {
defer func() {
lp.setPlanActive(active)