diff --git a/escpos/escpos.py b/escpos/escpos.py index b258bf1..7e11ada 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -205,7 +205,7 @@ class Escpos(object): :param text: text to generate a QR-Code from """ - qr_code = qrcode.QRCode(version=4, box_size=4, border=1) + qr_code = qrcode.QRCode(version=4, box_size=4, border=1, error_correction=qrcode.constants.ERROR_CORRECT_H) qr_code.add_data(text) qr_code.make(fit=True) qr_img = qr_code.make_image()