diff options
author | Přemysl Janouch <p@janouch.name> | 2019-04-14 21:34:56 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2019-04-14 21:34:56 +0200 |
commit | 412efcb1aea3a0803dd3eeae24f80ce62de86238 (patch) | |
tree | 0991d60d3d31af31a50c0b3a666c6fba4e7de87f /sklad/main.go | |
parent | 39e2c5b76d264904d34aec3e67665de816dfec4a (diff) | |
download | sklad-412efcb1aea3a0803dd3eeae24f80ce62de86238.tar.gz sklad-412efcb1aea3a0803dd3eeae24f80ce62de86238.tar.xz sklad-412efcb1aea3a0803dd3eeae24f80ce62de86238.zip |
Flush input buffers on printer initialization
Seems to be necessary, not sure why.
Diffstat (limited to 'sklad/main.go')
-rw-r--r-- | sklad/main.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sklad/main.go b/sklad/main.go index 9a7be68..4d6776e 100644 --- a/sklad/main.go +++ b/sklad/main.go @@ -185,10 +185,12 @@ func printLabel(id string) error { } defer printer.Close() - printer.StatusNotify = func(status *ql.Status) { - log.Printf("\x1b[1mreceived status\x1b[m\n%+v\n%s", - status[:], status) - } + /* + printer.StatusNotify = func(status *ql.Status) { + log.Printf("\x1b[1mreceived status\x1b[m\n%+v\n%s", + status[:], status) + } + */ if err := printer.Initialize(); err != nil { return err |