aboutsummaryrefslogtreecommitdiff
path: root/usblp.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-06 15:37:57 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-06 15:37:57 +0200
commit0729d3b3174de5f0802276172dc46383de1447f2 (patch)
tree885a32ec48b5604bb994e4f6a82993916c480818 /usblp.go
parentfbe34fac1e62617cd9d160e41f6730c550d95580 (diff)
Runtime OS detection
Diffstat (limited to 'usblp.go')
-rw-r--r--usblp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/usblp.go b/usblp.go
index 6a8bf55..da0dfd0 100644
--- a/usblp.go
+++ b/usblp.go
@@ -9,7 +9,7 @@ type LPDevice struct {
*os.File
}
-func NewLPDevice(path string) (LPDevice, error) {
+func NewLPDevice(path string) (Devicer, error) {
f, err := os.OpenFile(path, os.O_RDWR, 0666)
return LPDevice{f}, err
}