chore: log active phases
This commit is contained in:
parent
3735c8c037
commit
d7c8e41ffe
1 changed files with 2 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ func (lp *Loadpoint) ActivePhases() int {
|
|||
// sanity check - we should not assume less active phases than actually measured
|
||||
if measured > 0 && active < measured {
|
||||
lp.log.WARN.Printf("phase mismatch between %dp measured for %dp vehicle and %dp charger", measured, vehicle, physical)
|
||||
} else {
|
||||
lp.log.DEBUG.Printf("!! active phases: %dp = min(%dp measured %dp vehicle %dp physical %dp charger)", active, measured, vehicle, physical, charger)
|
||||
}
|
||||
|
||||
return active
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue