Commit 5b47d7e4 authored by Kevin Seidel's avatar Kevin Seidel
Browse files

Don't ignore errors

parent ba3b00e8
......@@ -144,7 +144,9 @@ func (h *HCI) Init() error {
h.chCmdBufs <- make([]byte, 64)
go h.sktLoop()
h.init()
if err := h.init(); err != nil {
return err
}
// Pre-allocate buffers with additional head room for lower layer headers.
// HCI header (1 Byte) + ACL Data Header (4 bytes) + L2CAP PDU (or fragment)
......
......@@ -2,9 +2,12 @@
package socket
import "io"
import (
"fmt"
"io"
)
// NewSocket is a dummy function for non-Linux platform.
func NewSocket(id int) (io.ReadWriteCloser, error) {
return nil, nil
return nil, fmt.Errorf("only available on linux")
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment