This commit is contained in:
andig 2021-08-21 23:44:48 +02:00 • committed by GitHub
parent e0e9e0ea6c
commit 701ff96831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,7 +159,7 @@ func NewConnection(uri, device, comset string, baudrate int, wire WireFormat, sl
switch strings.ToUpper(comset) {
case "8N1", "8E1":
default:
return nil, fmt.Errorf("invalid invalid comset: %s", comset)
return nil, fmt.Errorf("invalid comset: %s", comset)
}
if baudrate == 0 {