Skip to content

Commit a787cf3

Browse files
author
Paolo Biglioli
committed
fix bug serialPort not closing
serialPort property was never written to
1 parent 2b0a09b commit a787cf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

printer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ func (p *SerialPrinter) Open() error {
119119
if err != nil {
120120
return err
121121
}
122+
p.serialPort = &serialPort
122123
p.dst = bufio.NewWriter(serialPort)
123124
return nil
124125
}

0 commit comments

Comments
 (0)