SMA EV Charger: fix negative currents (#3443)

This commit is contained in:
David 2022-05-20 21:43:27 +02:00 • committed by GitHub
parent 360c1ab251
commit 6cbc7b3479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,7 +255,7 @@ func (wb *Smaevcharger) Currents() (float64, float64, float64, error) {
return 0, 0, 0, err
}
curr = append(curr, val)
curr = append(curr, -val)
}
return curr[0], curr[1], curr[2], nil