Handle yaml 8e1 transparently
This commit is contained in:
parent
1f4cf16ad2
commit
dbc09b49ed
1 changed files with 2 additions and 0 deletions
|
|
@ -158,6 +158,8 @@ func NewConnection(uri, device, comset string, baudrate int, wire WireFormat, sl
|
|||
if device != "" {
|
||||
switch strings.ToUpper(comset) {
|
||||
case "8N1", "8E1":
|
||||
case "80":
|
||||
comset = "8E1"
|
||||
default:
|
||||
return nil, fmt.Errorf("invalid comset: %s", comset)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue