Fix build error
This commit is contained in:
parent
ac8af9674e
commit
fbd0d6559d
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ func NewConnection(uri, device, comset string, baudrate int, proto Protocol, sla
|
|||
if uri != "" {
|
||||
uri = util.DefaultPort(uri, 502)
|
||||
|
||||
switch wire {
|
||||
switch proto {
|
||||
case Rtu:
|
||||
conn = registeredConnection(uri, meters.NewRTUOverTCP(uri))
|
||||
case Ascii:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue