Warn when other phases than L1 are active (#2719)
This commit is contained in:
parent
f0dc811224
commit
3f422c88eb
1 changed files with 4 additions and 1 deletions
|
|
@ -1327,8 +1327,11 @@ func (lp *LoadPoint) updateChargeCurrents() {
|
|||
|
||||
if lp.charging() {
|
||||
var phases int
|
||||
for _, i := range lp.chargeCurrents {
|
||||
for l, i := range lp.chargeCurrents {
|
||||
if i >= minActiveCurrent {
|
||||
if l > 0 && phases == 0 {
|
||||
lp.log.WARN.Printf("invalid wiring: phase %d observed active should be first phase", l+1)
|
||||
}
|
||||
phases++
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue