aboutsummaryrefslogtreecommitdiff
path: root/dev_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'dev_linux.go')
-rw-r--r--dev_linux.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev_linux.go b/dev_linux.go
index 66ab472..cad10bb 100644
--- a/dev_linux.go
+++ b/dev_linux.go
@@ -1,5 +1,7 @@
package robo
+const LPDevice = "/dev/usb/lp0"
+
func Open() (Device, error) {
- return NewLP("/dev/usb/lp0")
+ return NewLP(LPDevice)
}