Skip to content

Commit

Permalink
Planner: fix slot comparison (evcc-io#17146)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Nov 8, 2024
1 parent a5020c8 commit bcc4052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/loadpoint_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (lp *Loadpoint) plannerActive() (active bool) {
// don't stop an already running slot if goal was not met
lp.log.DEBUG.Println("plan: continuing until end of slot")
return true
case requiredDuration < smallGapDuration:
case requiredDuration < smallSlotDuration:
lp.log.DEBUG.Printf("plan: continuing for remaining %v", requiredDuration.Round(time.Second))
return true
case lp.clock.Until(planStart) < smallGapDuration:
Expand Down

0 comments on commit bcc4052

Please sign in to comment.