Skip to content

Commit

Permalink
Loadpoint: don't disable at limitsoc 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Dec 30, 2023
1 parent 8ed21de commit ce914dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/loadpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ func (lp *Loadpoint) limitEnergyReached() bool {
// limitSocReached returns true if the effective limit has been reached
func (lp *Loadpoint) limitSocReached() bool {
limit := lp.effectiveLimitSoc()
return limit > 0 && lp.vehicleSoc >= float64(limit)
return limit > 0 && limit < 100 && lp.vehicleSoc >= float64(limit)
}

// minSocNotReached checks if minimum is configured and not reached.
Expand Down

0 comments on commit ce914dd

Please sign in to comment.