Modbus: remove duplicate delay
This commit is contained in:
parent
c456cf3793
commit
1ca16067f6
1 changed files with 0 additions and 5 deletions
|
|
@ -59,11 +59,6 @@ func NewModbusFromConfig(other map[string]interface{}) (IntProvider, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// set non-default delay
|
||||
if cc.Delay > 0 {
|
||||
conn.Delay(cc.Delay)
|
||||
}
|
||||
|
||||
// set non-default timeout
|
||||
if cc.Timeout > 0 {
|
||||
conn.Timeout(cc.Timeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue