TWC3: allow fast charging when vehicle does not support current control (#28802)

This commit is contained in:
Hofy 2026-04-06 09:46:50 +02:00 • committed by GitHub
parent e995c83214
commit 536ebcb319
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")
} }