EEbus: only adjust currents if not overridden by vehicle (#7563)
This commit is contained in:
parent
c126dac1aa
commit
b4e62a97cd
1 changed files with 2 additions and 2 deletions
|
|
@ -170,10 +170,10 @@ func (c *EEBus) setLoadpointMinMaxLimits() {
|
|||
newMin := minLimits[0]
|
||||
newMax := maxLimits[0]
|
||||
|
||||
if c.lp.GetMinCurrent() != newMin && newMin > 0 {
|
||||
if c.lp.GetMinCurrent() != newMin && newMin > 0 && c.lp.GetVehicle().OnIdentified().MinCurrent == nil {
|
||||
c.lp.SetMinCurrent(newMin)
|
||||
}
|
||||
if c.lp.GetMaxCurrent() != newMax && newMax > 0 {
|
||||
if c.lp.GetMaxCurrent() != newMax && newMax > 0 && c.lp.GetVehicle().OnIdentified().MaxCurrent == nil {
|
||||
c.lp.SetMaxCurrent(newMax)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue