Skip to content

Commit

Permalink
Consistently format serial logs (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored and nqv committed Sep 19, 2018
1 parent 0d0a427 commit 606c02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtuclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (mb *rtuSerialTransporter) Send(aduRequest []byte) (aduResponse []byte, err
mb.serialPort.startCloseTimer()

// Send the request
mb.serialPort.logf("modbus: sending %q\n", aduRequest)
mb.serialPort.logf("modbus: sending % x\n", aduRequest)
if _, err = mb.port.Write(aduRequest); err != nil {
return
}
Expand Down

0 comments on commit 606c02f

Please sign in to comment.