phoenix-ev-eth: fix int32 size
This commit is contained in:
parent
16a118b55b
commit
b69abc6b27
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue