diff --git a/pkg/candevice/device_linux.go b/pkg/candevice/device_linux.go index 89c55a8..621e3c5 100644 --- a/pkg/candevice/device_linux.go +++ b/pkg/candevice/device_linux.go @@ -52,7 +52,7 @@ type CanDevice interface { } // Creates a handle to a CAN device specified by name, e.g. can0. -func New(deviceName string) (CanDevice, error) { +func New(deviceName string) (*Device, error) { iface, err := net.InterfaceByName(deviceName) if err != nil { return nil, err