Modbus: add 8N2
This commit is contained in:
parent
a402126504
commit
855185b186
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ func NewConnection(uri, device, comset string, baudrate int, proto Protocol, sla
|
|||
|
||||
if device != "" {
|
||||
switch strings.ToUpper(comset) {
|
||||
case "8N1", "8E1":
|
||||
case "8N1", "8E1", "8N2":
|
||||
case "80":
|
||||
comset = "8E1"
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue