MCPcopy Create free account
hub / github.com/evcc-io/evcc / LimitEnergyReached

Method LimitEnergyReached

core/loadpoint.go:1064–1069  ·  view source on GitHub ↗

LimitEnergyReached checks if target is configured and reached

()

Source from the content-addressed store, hash-verified

1062
1063// LimitEnergyReached checks if target is configured and reached
1064func (lp *Loadpoint) LimitEnergyReached() bool {
1065 lp.RLock()
1066 defer lp.RUnlock()
1067 f, ok := lp.remainingLimitEnergy()
1068 return ok && f <= 0
1069}
1070
1071// LimitSocReached returns true if the effective limit has been reached
1072func (lp *Loadpoint) LimitSocReached() bool {

Callers 1

UpdateMethod · 0.95

Calls 3

RLockMethod · 0.95
RUnlockMethod · 0.95
remainingLimitEnergyMethod · 0.95

Tested by

no test coverage detected