chore: simplify
This commit is contained in:
parent
a33cf0ba35
commit
20f6d3403d
1 changed files with 1 additions and 2 deletions
|
|
@ -164,8 +164,7 @@ func (lp *Loadpoint) plannerActive() (active bool) {
|
|||
return false
|
||||
}
|
||||
|
||||
// remember last active plan's end time
|
||||
lp.setPlanActive(true)
|
||||
// remember last active plan's slot end time
|
||||
lp.planSlotEnd = activeSlot.End
|
||||
} else if lp.planActive {
|
||||
// planner was active (any slot, not necessarily previous slot) and charge goal has not yet been met
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue