v0.1.13
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
APP_NAME="libgofunc"
|
||||
VERSION="${1:-v0.1.12}"
|
||||
VERSION="${1:-v0.1.13}"
|
||||
OUTPUT_DIR="../assets"
|
||||
BUILD_DIR="../build"
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ func connect(printer string) (io.ReadWriteCloser, error) {
|
||||
return conn, nil
|
||||
} else if strings.HasPrefix(printer, "usb:") {
|
||||
location := strings.TrimLeft(printer, "usb:")
|
||||
f, err := os.OpenFile(location, os.O_RDWR, os.ModeDevice)
|
||||
f, err := os.OpenFile(location, os.O_WRONLY, 0666)
|
||||
if err != nil {
|
||||
log.Println("error os.OpenFile usb:", err.Error())
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user