Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Apr 21, 2020
1 parent 0e352c7 commit 6cbfc55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion provider/modbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/volkszaehler/mbmd/meters/sunspec"
)

// Modbus implements modbus RTU and TCP access
type Modbus struct {
log *api.Logger
conn meters.Connection
Expand Down Expand Up @@ -130,7 +131,9 @@ func (m *Modbus) FloatGetter() (float64, error) {
res, err = dev.QueryOp(m.conn.ModbusClient(), m.op.IEC61850)
}

m.log.TRACE.Printf("%+v", res)
if err == nil {
m.log.TRACE.Printf("%+v", res)
}

return res.Value, err
}
Expand Down

0 comments on commit 6cbfc55

Please sign in to comment.