Elapse guard when loadpoint is out of sync (#9450)
This commit is contained in:
parent
ef358405b1
commit
c928dd40f3
1 changed files with 2 additions and 0 deletions
|
|
@ -667,6 +667,7 @@ func (lp *Loadpoint) syncCharger() error {
|
|||
if lp.guardGracePeriodElapsed() && lp.phaseSwitchCompleted() && (enabled || lp.connected()) {
|
||||
lp.log.WARN.Printf("charger out of sync: expected %vd, got %vd", status[lp.enabled], status[enabled])
|
||||
}
|
||||
lp.elapseGuard()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -674,6 +675,7 @@ func (lp *Loadpoint) syncCharger() error {
|
|||
if lp.guardGracePeriodElapsed() {
|
||||
lp.log.WARN.Println("charger logic error: disabled but charging")
|
||||
}
|
||||
lp.elapseGuard()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue