wip
This commit is contained in:
parent
6234521227
commit
c3ca633f44
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ func (wb *DaheimLadenMB) TotalEnergy() (float64, error) {
|
|||
|
||||
// getPhaseValues returns 3 sequential register values
|
||||
func (wb *DaheimLadenMB) getPhaseValues(reg uint16) (float64, float64, float64, error) {
|
||||
b, err := wb.conn.ReadHoldingRegisters(reg, 6)
|
||||
b, err := wb.conn.ReadHoldingRegisters(reg, 5)
|
||||
if err != nil {
|
||||
return 0, 0, 0, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue