minor fix

This commit is contained in:
fabiand14 2022-10-27 16:03:04 -05:00
parent 71e0f36974
commit 335c0adbec
1 changed files with 1 additions and 0 deletions

View File

@ -762,6 +762,7 @@ class Receipt(object):
if order['interface'] == 'usb':
if os.name == 'posix':
self._printer = printer.File(host)
self._printer.close()
self._printer.open()
elif os.name == 'nt':
self._printer = printer.Win32Raw(host)