chore: clarify plan/planner active
This commit is contained in:
parent
5919d5c9e6
commit
133afabb95
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue