Prevent premature guard elapse in "charger out of sync" situation (#10340)
This commit is contained in:
parent
4b5e80296c
commit
8f2548e020
1 changed files with 1 additions and 1 deletions
|
|
@ -685,8 +685,8 @@ func (lp *Loadpoint) syncCharger() error {
|
|||
// ignore disabled state if vehicle was disconnected ^(lp.enabled && ^lp.connected)
|
||||
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()
|
||||
}
|
||||
lp.elapseGuard()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue