From c532fdb55166a4bae8abd37b55cb50d53bfcaf31 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 17 Oct 2011 23:16:57 +0200 Subject: [PATCH] client-barcode: No longer print empty barcode on LCD display --- client-barcode/freitagskasse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index 40c38bf..3f67de2 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -579,8 +579,8 @@ def main(): if not l: break line = l.rstrip() - print_display('\x0cBarcode:\n%20s' % line[:20]) if line: + print_display('\x0cBarcode:\n%20s' % line[:20]) handle(line, status)