From 250455ae23cc703a061d41697463a2733cf67f64 Mon Sep 17 00:00:00 2001 From: Davis Goglin Date: Mon, 7 Mar 2016 16:20:04 -0800 Subject: [PATCH] Add null terminator when printing barcode of type A, issue #58 --- escpos/escpos.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/escpos/escpos.py b/escpos/escpos.py index 1aed8ad..f18b169 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -440,6 +440,9 @@ class Escpos(object): else: raise BarcodeCodeError() + if function_type.upper() == "A": + self._raw("\x00") + def text(self, txt): """ Print alpha-numeric text