mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
no need for framer to return two values
This commit is contained in:
@@ -56,10 +56,10 @@ func init() {
|
||||
framingMethod = framingMethodString
|
||||
}
|
||||
|
||||
framer, err := framer.GetFramer(framingMethod)
|
||||
framer := framer.GetFramer(framingMethod)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
if framer == nil {
|
||||
return nil, fmt.Errorf("serial.client unknown framing method: %s", framingMethod)
|
||||
}
|
||||
|
||||
buadRate, ok := params["baudRate"]
|
||||
|
||||
Reference in New Issue
Block a user