Planner: continue a 100% plan as long as the vehicle is connected (#26203)
This commit is contained in:
parent
4f1c21cc00
commit
2977763ff7
1 changed files with 2 additions and 2 deletions
|
|
@ -137,8 +137,8 @@ func (lp *Loadpoint) plannerActive() (active bool) {
|
|||
maxPower := lp.EffectiveMaxPower()
|
||||
requiredDuration := lp.GetPlanRequiredDuration(goal, maxPower)
|
||||
if requiredDuration <= 0 {
|
||||
// continue a 100% plan as long as the vehicle is charging
|
||||
if lp.planActive && isSocBased && goal == 100 && lp.charging() {
|
||||
// continue a 100% plan as long as the vehicle is connected
|
||||
if lp.planActive && isSocBased && goal == 100 {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue