remove phase usage warning

#6335
This commit is contained in:
premultiply 2023-02-21 21:33:30 +01:00 • committed by GitHub
parent ff7ae36967
commit f5abb20781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1221,11 +1221,6 @@ func (lp *Loadpoint) updateChargeCurrents() {
lp.publish("chargeCurrents", lp.chargeCurrents)
if lp.charging() {
// Quine-McCluskey for (¬L1∧L2∧¬L3) ∨ (¬L1∧¬L2∧L3) ∨ (L1∧¬L2∧L3) ∨ (¬L1∧L2∧L3) -> ¬L1 ∧ L2 ∨ ¬L2 ∧ L3
if !(i1 > minActiveCurrent) && (i2 > minActiveCurrent) || !(i2 > minActiveCurrent) && (i3 > minActiveCurrent) {
lp.log.WARN.Printf("invalid phase wiring between charge meter and charger")
}
var phases int
for _, i := range lp.chargeCurrents {
if i > minActiveCurrent {