Loadpoint: honor physical phases on init (#22441)
This commit is contained in:
parent
11f856b1ca
commit
4b5d0762e3
1 changed files with 7 additions and 2 deletions
|
|
@ -251,8 +251,13 @@ func NewLoadpointFromConfig(log *util.Logger, settings settings.Settings, other
|
|||
|
||||
// phase switching defaults based on charger capabilities
|
||||
if !lp.hasPhaseSwitching() {
|
||||
lp.phasesConfigured = 3
|
||||
lp.phases = 3
|
||||
phases := lp.getChargerPhysicalPhases()
|
||||
if phases == 0 {
|
||||
phases = 3 // default to 3p if no charger phases are known
|
||||
}
|
||||
|
||||
lp.phasesConfigured = phases
|
||||
lp.phases = phases
|
||||
}
|
||||
|
||||
return lp, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue