TWC3: allow fast charging when vehicle does not support current control (#28802)
This commit is contained in:
parent
e995c83214
commit
536ebcb319
1 changed files with 5 additions and 0 deletions
|
|
@ -139,6 +139,11 @@ func (c *Twc3) MaxCurrent(current int64) error {
|
||||||
|
|
||||||
v, ok := api.Cap[api.CurrentController](c.lp.GetVehicle())
|
v, ok := api.Cap[api.CurrentController](c.lp.GetVehicle())
|
||||||
if !ok {
|
if !ok {
|
||||||
|
if c.lp.GetMode() == api.ModeNow {
|
||||||
|
// vehicle does not support current control- ignore silently
|
||||||
|
// since TWC3 cannot limit current on its own
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return errors.New("vehicle not capable of current control")
|
return errors.New("vehicle not capable of current control")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue