Skip to content

Commit

Permalink
phoenix-ev-eth: fix int32 size
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored Sep 22, 2023
1 parent 16a118b commit b69abc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charger/phoenix-ev-eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b69abc6

Please sign in to comment.