ABL eMH: fix standby current measurements (#2811)

This commit is contained in:
premultiply 2022-03-07 20:20:46 +01:00 • committed by GitHub
parent cb63a85a17
commit 2b33111993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,7 +208,7 @@ func (wb *ABLeMH) currents() (float64, float64, float64, error) {
var currents []float64
for i := 2; i < 5; i++ {
u := binary.BigEndian.Uint16(b[2*i:])
if u == ablAmpsDisabled {
if u == ablAmpsDisabled || u == 1 {
u = 0
}