Modbus: add 8N2

This commit is contained in:
andig 2023-12-11 09:38:13 +01:00
parent a402126504
commit 855185b186

View file

@ -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: