SGReady: reset session energy when status off (#22014)
This commit is contained in:
parent
26cd971fb0
commit
2cad067baf
1 changed files with 4 additions and 0 deletions
|
|
@ -129,6 +129,10 @@ func (wb *SgReady) getMode() (int64, error) {
|
|||
|
||||
// Status implements the api.Charger interface
|
||||
func (wb *SgReady) Status() (api.ChargeStatus, error) {
|
||||
if wb.lp != nil && wb.lp.GetMode() == api.ModeOff {
|
||||
return api.StatusA, nil
|
||||
}
|
||||
|
||||
mode, err := wb.getMode()
|
||||
if err != nil {
|
||||
return api.StatusNone, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue