Versicharge: fix TotalEnergy scale on firmware >= 2.135 (#15062)
This commit is contained in:
parent
568c5646a8
commit
1515a67fc0
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ func (wb *Versicharge) TotalEnergy() (float64, error) {
|
|||
return 0, err
|
||||
}
|
||||
|
||||
return float64(binary.BigEndian.Uint32(b)) / 1e4, err
|
||||
return float64(binary.BigEndian.Uint32(b)) / 1e3, err
|
||||
}
|
||||
|
||||
// getPhaseValues returns 3 sequential register values
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue