aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-06 14:39:41 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-06 14:39:41 +0200
commite5f857994fd8239f3ac0f7e1de7181e628d8a059 (patch)
treee40118a3193bf0e509a112a08e5c279255bb0b36
parent2273ac77c7106c36536d17ee6f07d9492780a573 (diff)
Fix close
-rw-r--r--usblp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/usblp.go b/usblp.go
index b6cf987..6a8bf55 100644
--- a/usblp.go
+++ b/usblp.go
@@ -15,7 +15,7 @@ func NewLPDevice(path string) (LPDevice, error) {
}
func (d LPDevice) Close() {
- d.Close()
+ d.File.Close()
}
func (d LPDevice) Handle() *bufio.ReadWriter {