From 9f1ac0de80d248b1a632efe71e207ef6cf02dc45 Mon Sep 17 00:00:00 2001 From: Dmytro Katyukha Date: Thu, 9 Feb 2017 14:39:37 +0000 Subject: [PATCH] Bugfix: incorrect `cut` commands [Documentation](http://content.epson.de/fileadmin/content/files/RSD/downloads/escpos.pdf) --- src/escpos/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/escpos/constants.py b/src/escpos/constants.py index e3225f8..9df0595 100644 --- a/src/escpos/constants.py +++ b/src/escpos/constants.py @@ -53,8 +53,8 @@ CD_KICK_5 = _CASH_DRAWER(b'\x01', 50, 50) # Sends a pulse to pin 5 [] # Paper Cutter _CUT_PAPER = lambda m: GS + b'V' + m -PAPER_FULL_CUT = _CUT_PAPER(b'\x00') # Full cut paper -PAPER_PART_CUT = _CUT_PAPER(b'\x01') # Partial cut paper +PAPER_FULL_CUT = _CUT_PAPER(b'\x00\x30') # Full cut paper +PAPER_PART_CUT = _CUT_PAPER(b'\x01\x31') # Partial cut paper # Beep BEEP = b'\x07'