phoenix-ev-eth: fix int32 size

This commit is contained in:
premultiply 2023-09-22 11:23:03 +02:00 • committed by GitHub
parent 16a118b55b
commit b69abc6b27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,7 +229,7 @@ func (wb *PhoenixEVEth) getPhases(reg uint16) (float64, float64, float64, error)
var res [3]float64
for i := 0; i < 3; i++ {
res[i] = float64(encoding.Int32LswFirst(b[2*i:]))
res[i] = float64(encoding.Int32LswFirst(b[4*i:]))
}
return res[0], res[1], res[2], nil